How to manipulate the sliders when I use a WEB-widget?

But without access to the mediaplayer, how can i seek and how to manipulate volume??
To use a custom control, I also need the mediaplayer.position and mediaplayer.duration properties …
How to adress the mediaplayer? => Video AND Audio

An VERY important additional question:
When I use a WEB-widget=> how to manipulate the sliders (vertical and/or/horizontal)??
In the the inspector, there is no possibility (as far as I tried) to change the style/colors/appearance for the sliders.

Additionaly (because of using MultiPointTouchArea on the WEB-widget for custom gestures => THIS IS A MUST FOR ME), I want to turn off the build-in slider and use a custom version. So how can I manipulate the POSITION of the content?
Therefor I must know the length to calculate the scale and the position of the slider.

Please give me these informations (mediaplayer and WEB-widget) and my project is to be finished!! :slight_smile:

page.getBlockByName(“sound_fx_1”).subItem.member_playMusic - http://doc.qt.io/qt-5/qml-qtmultimedia-audio.html

You can get direct access to the http://doc.qt.io/qt-5/qml-qtwebengine-webengineview.html object using: page.getBlockByName(‘web’).subItem.member_webView.children[0].item

To hide scroll bar:
page.getBlockByName(‘web’).subItem.member_webView.children[0].item.runJavaScript(“document.documentElement.style.overflow=‘hidden’;”);

To get scroll height:
page.getBlockByName(‘web’).subItem.member_webView.children[0].item.runJavaScript(“document.documentElement.scrollHeight;”, function(result) { console.log(result); });

To scroll to position y=500px:
page.getBlockByName(‘web’).subItem.member_webView.children[0].item.runJavaScript(“window.scrollTo(0, 500)”);


Back to Flipabit >
Copyright © 2018. Flipabit Team. All rights reserved.