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

Add ThreeJSScene and

This commit is contained in:
Elias Steurer 2019-10-23 17:09:13 +02:00
parent 75b7b53d75
commit 224b3d63e3

View File

@ -26,10 +26,8 @@ Rectangle {
switch (window.type) {
case Wallpaper.WallpaperType.Video:
webView.url = Qt.resolvedUrl(window.getApplicationPath(
) + "/index.html")
webView.url = Qt.resolvedUrl(window.getApplicationPath() + "/index.html")
webView.enabled = true
break
case Wallpaper.WallpaperType.Html:
webView.enabled = true
@ -37,6 +35,7 @@ Rectangle {
break
case Wallpaper.WallpaperType.ThreeJSScene:
webView.enabled = true
webView.url = Qt.resolvedUrl(window.fullContentPath)
break
case Wallpaper.WallpaperType.Qml:
loader.enabled = true
@ -87,6 +86,9 @@ Rectangle {
onLoadProgressChanged: {
if (loadProgress === 100) {
// TODO 30:
// Currently wont work. Commit anyways til QtCreator and Qt work with js template literals
var src = ""
src += "var videoPlayer = document.getElementById('videoPlayer');"
src += "var videoSource = document.getElementById('videoSource');"