3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-26 13:55:31 +02:00

DEV-2375: ensure web entities stop playing audio

This commit is contained in:
Brad Davis 2019-10-14 10:46:32 -07:00
parent 8f7f23480f
commit 95b5c8a905

View file

@ -33,6 +33,10 @@ Item {
property var item: null
function load(url, scriptUrl) {
// Ensure we reset any existing item to "about:blank" to ensure web audio stops: DEV-2375
if (root.item != null) {
root.item.url = "about:blank"
}
QmlSurface.load("./controls/WebView.qml", root, function(newItem) {
root.item = newItem
root.item.url = url