Remove support streaming
Remove support streaming from video delegate as it's breaking downloads and unused
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user