mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
Add ThreeJSScene and
This commit is contained in:
parent
75b7b53d75
commit
224b3d63e3
@ -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');"
|
||||
|
Loading…
Reference in New Issue
Block a user