Fix supportStreaming in VideoDelegate
This commit is contained in:
@@ -177,13 +177,13 @@ TimelineContainer {
|
|||||||
|
|
||||||
onDurationChanged: {
|
onDurationChanged: {
|
||||||
if (!duration) {
|
if (!duration) {
|
||||||
vid.supportStreaming = false;
|
root.supportStreaming = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onErrorChanged: {
|
onErrorChanged: {
|
||||||
if (error != MediaPlayer.NoError) {
|
if (error != MediaPlayer.NoError) {
|
||||||
vid.supportStreaming = false;
|
root.supportStreaming = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -391,7 +391,7 @@ TimelineContainer {
|
|||||||
|
|
||||||
TapHandler {
|
TapHandler {
|
||||||
acceptedButtons: Qt.LeftButton
|
acceptedButtons: Qt.LeftButton
|
||||||
onTapped: if (vid.supportStreaming || root.progressInfo.completed) {
|
onTapped: if (root.supportStreaming || root.progressInfo.completed) {
|
||||||
if (vid.playbackState == MediaPlayer.PlayingState) {
|
if (vid.playbackState == MediaPlayer.PlayingState) {
|
||||||
vid.pause()
|
vid.pause()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user