Commit b15a2140 authored by Camilo Higuita's avatar Camilo Higuita

quick fixes on youtubeviewer

parent 28f708a7
......@@ -41,7 +41,7 @@ Page
if(url && url.length > 0)
{
youtubeViewer.currentYt = track
youtubeViewer.webView.url = url+"?autoplay=1?"
youtubeViewer.webView.url = url+"?autoplay=1"
stackView.push(youtubeViewer)
}
......
......@@ -76,7 +76,7 @@ Page
width: rowHeight
iconName : "link"
iconColor: darkForegroundColor
onClicked: bae.openFile(webView.url)
onClicked: webView.url = currentYt.url.replace("embed/", "watch?v=")
}
BabeButton
......@@ -96,11 +96,7 @@ Page
width: rowHeight
iconName : "overflow-menu"
iconColor: darkForegroundColor
}
}
}
......@@ -110,6 +106,13 @@ Page
Layout.fillHeight: true
Layout.fillWidth: true
source: isMobile ? "qrc:/services/web/WebView_A.qml" : "qrc:/services/web/WebView.qml"
onVisibleChanged:
{
if(!visible) webView.url = "about:blank"
console.log(webView.url, visible)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment