mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-11-22 01:05:17 +00:00
VideoPlayer no longer jumps back after resuming
This commit is contained in:
parent
c01fcdcb54
commit
dc395e9b3c
|
@ -56,7 +56,6 @@ SilicaItem {
|
|||
apiClient: ApiClient
|
||||
itemId: playerRoot.itemId
|
||||
autoOpen: true
|
||||
//autoPlay: true
|
||||
onStreamUrlChanged: {
|
||||
if (mediaSource.streamUrl != "") {
|
||||
player.source = streamUrl
|
||||
|
@ -105,13 +104,14 @@ SilicaItem {
|
|||
|
||||
function stop() {
|
||||
player.stop()
|
||||
//player.source = ""
|
||||
}
|
||||
|
||||
Connections {
|
||||
property bool enabled: true
|
||||
id: playerReadyToSeek
|
||||
target: player
|
||||
onPlaybackStateChanged: {
|
||||
if (!enabled) return;
|
||||
if (startTicks > 0 && player.playbackState == MediaPlayer.PlayingState) {
|
||||
console.log("Seeking to " + Utils.ticksToMs(startTicks))
|
||||
player.seek(Utils.ticksToMs(startTicks))
|
||||
|
|
Loading…
Reference in a new issue