Remove support streaming

Remove support streaming from video delegate as it's breaking downloads and unused
This commit is contained in:
James Graham
2023-09-01 17:54:37 +00:00
parent 8359c1fe90
commit bf3c5708c7

View File

@@ -45,11 +45,6 @@ TimelineContainer {
*/
property bool playOnFinished: false
/**
* @brief Whether the video can be streamed.
*/
property bool supportStreaming: true
/**
* @brief The maximum width of the image.
*/
@@ -175,18 +170,6 @@ TimelineContainer {
}
]
onDurationChanged: {
if (!duration) {
root.supportStreaming = false;
}
}
onErrorChanged: {
if (error != MediaPlayer.NoError) {
root.supportStreaming = false;
}
}
Image {
id: mediaThumbnail
anchors.fill: parent
@@ -391,7 +374,7 @@ TimelineContainer {
TapHandler {
acceptedButtons: Qt.LeftButton
onTapped: if (root.supportStreaming || root.progressInfo.completed) {
onTapped: if (root.progressInfo.completed) {
if (vid.playbackState == MediaPlayer.PlayingState) {
vid.pause()
} else {