1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-14 22:42:34 +02:00

Fix osx only check

This commit is contained in:
Elias Steurer 2021-11-01 19:12:58 +01:00
parent c0cfef1536
commit 6a3395286a

View File

@ -18,12 +18,13 @@ Rectangle {
Wallpaper.terminate()
}
// macOS only supports h264 via the native Qt MM
if (Wallpaper.videoCodec === VideoCodec.VP8
|| Wallpaper.videoCodec === VideoCodec.VP9) {
if (Qt.platform === "osx" && (Wallpaper.videoCodec === VideoCodec.VP8
|| Wallpaper.videoCodec === VideoCodec.VP9)) {
loader.source = "qrc:/ScreenPlayWallpaper/qml/MultimediaWebView.qml"
} else {
loader.source = "qrc:/ScreenPlayWallpaper/qml/MultimediaView.qml"
}
fadeIn()
break
case InstalledType.HTMLWallpaper:
loader.setSource("qrc:/ScreenPlayWallpaper/qml/WebView.qml", {