fix(Call): saved videos/images/sounds avoid usage of : separator in filename (unsupported on windows) (close #115)

This commit is contained in:
Ronan Abhamon 2018-01-16 11:20:40 +01:00
parent b2af83265a
commit 42d2a3033a
2 changed files with 5 additions and 5 deletions

View file

@ -80,8 +80,8 @@ void CallModel::setRecordFile (shared_ptr<linphone::CallParams> &callParams) {
callParams->setRecordFile(
::Utils::appStringToCoreString(
QStringLiteral("%1%2.mkv")
.arg(CoreManager::getInstance()->getSettingsModel()->getSavedVideosFolder())
.arg(QDateTime::currentDateTime().toString("yyyy-MM-dd_hh:mm:ss"))
.arg(CoreManager::getInstance()->getSettingsModel()->getSavedVideosFolder())
.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.");

View file

@ -79,8 +79,8 @@ void ConferenceModel::startRecording () {
coreManager->getCore()->startConferenceRecording(
::Utils::appStringToCoreString(
QStringLiteral("%1%2.mkv")
.arg(coreManager->getSettingsModel()->getSavedVideosFolder())
.arg(QDateTime::currentDateTime().toString("yyyy-MM-dd_hh:mm:ss"))
.arg(coreManager->getSettingsModel()->getSavedVideosFolder())
.arg(QDateTime::currentDateTime().toString("yyyy-MM-dd_hh-mm-ss"))
)
);
mRecording = true;