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
|
property bool playOnFinished: false
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Whether the video can be streamed.
|
|
||||||
*/
|
|
||||||
property bool supportStreaming: true
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The maximum width of the image.
|
* @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 {
|
Image {
|
||||||
id: mediaThumbnail
|
id: mediaThumbnail
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@@ -391,7 +374,7 @@ TimelineContainer {
|
|||||||
|
|
||||||
TapHandler {
|
TapHandler {
|
||||||
acceptedButtons: Qt.LeftButton
|
acceptedButtons: Qt.LeftButton
|
||||||
onTapped: if (root.supportStreaming || root.progressInfo.completed) {
|
onTapped: if (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