1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-15 06:52:34 +02:00

Add webm file format

This commit is contained in:
kelteseth 2018-02-18 16:45:51 +01:00
parent ce38bbec0d
commit 12fd518216
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ void InstalledListModel::loadScreens()
if (!obj.contains("type")) {
if (obj.contains("file")) {
QString fileEnding = obj.value("file").toString();
if (fileEnding.endsWith(".mp4") || fileEnding.endsWith(".vp9")) {
if (fileEnding.endsWith(".mp4") || fileEnding.endsWith(".vp9") || fileEnding.endsWith(".webm")) {
obj.insert("type", "video");
}
}

View File

@ -42,7 +42,7 @@ MainWindow::MainWindow(int i, QString projectPath, QScreen* parent)
if (!m_project.contains("type")) {
if (m_project.contains("file")) {
QString fileEnding = m_project.value("file").toString();
if (fileEnding.endsWith(".mp4") || fileEnding.endsWith(".vp9")) {
if (fileEnding.endsWith(".mp4") || fileEnding.endsWith(".vp9") || fileEnding.endsWith(".webm")) {
m_project.insert("type", "video");
}
}