mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 16:32:33 +02:00
Add webm file format
This commit is contained in:
parent
ce38bbec0d
commit
12fd518216
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user