Commit 42d2a303 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(Call): saved videos/images/sounds avoid usage of `:` separator in filename...

fix(Call): saved videos/images/sounds avoid usage of `:` separator in filename (unsupported on windows) (close #115)
parent b2af8326
......@@ -81,7 +81,7 @@ void CallModel::setRecordFile (shared_ptr<linphone::CallParams> &callParams) {
::Utils::appStringToCoreString(
QStringLiteral("%1%2.mkv")
.arg(CoreManager::getInstance()->getSettingsModel()->getSavedVideosFolder())
.arg(QDateTime::currentDateTime().toString("yyyy-MM-dd_hh:mm:ss"))
.arg(QDateTime::currentDateTime().toString("yyyy-MM-dd_hh-mm-ss"))
)
);
}
......@@ -197,7 +197,7 @@ void CallModel::rejectVideoRequest () {
void CallModel::takeSnapshot () {
static QString oldName;
QString newName = QDateTime::currentDateTime().toString("yyyy-MM-dd_hh:mm:ss") + ".jpg";
QString newName = QDateTime::currentDateTime().toString("yyyy-MM-dd_hh-mm-ss") + ".jpg";
if (newName == oldName) {
qWarning() << QStringLiteral("Unable to take snapshot. Wait one second.");
......
......@@ -80,7 +80,7 @@ void ConferenceModel::startRecording () {
::Utils::appStringToCoreString(
QStringLiteral("%1%2.mkv")
.arg(coreManager->getSettingsModel()->getSavedVideosFolder())
.arg(QDateTime::currentDateTime().toString("yyyy-MM-dd_hh:mm:ss"))
.arg(QDateTime::currentDateTime().toString("yyyy-MM-dd_hh-mm-ss"))
)
);
mRecording = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment