How to play video using QML with start video any time?
-
I want to run a sample video using QML .
When i am runnimng the following code :import QtQuick 6.4 import QtMultimedia import sample_video Window { width: 800 height: 600 visible: true title: "sample_video" property real time_s: 60000 Component.onCompleted: { mediaplayer.play(); mediaplayer.position = 5000 } Component.onDestruction: { } MediaPlayer { id: mediaplayer source: data.source_video // position: 5000 videoOutput: videoOutput onErrorOccurred: (error,errorString)=> { console.log( errorString); } } VideoOutput { id: videoOutput anchors.fill: parent } }
however the video play time starts at 0. is there any way i can set this time?
Also this time is taken from c++ side. however in QML there is no support for "long long" type is there any way to handle this problem?Win 10 - QT6.4.3
Thanks.