Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F112423
D149.1732310148.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D149.1732310148.diff
View Options
diff --git a/src/contents/ui/event-types/Video.qml b/src/contents/ui/event-types/Video.qml
--- a/src/contents/ui/event-types/Video.qml
+++ b/src/contents/ui/event-types/Video.qml
@@ -60,7 +60,7 @@
property var video: Video {
id: video
source: fileHandler.kazvIOJob ? "" : fileHandler.cachedFile
-
+ autoPlay: !hasAudio
loops: MediaPlayer.Infinite
Layout.fillWidth: true
property double videoWidth: upper.thumbnailWidth || upper.videoWidth || video.implicitWidth || 1
@@ -94,6 +94,22 @@
}
}
+ Control {
+ anchors.centerIn: parent
+ height: Math.min(video.height, video.width, Kirigami.Units.iconSizes.large)
+ width: Math.min(video.height, video.width, Kirigami.Units.iconSizes.large)
+ visible: video.playbackState !== MediaPlayer.PlayingState
+
+ background: Rectangle {
+ radius: width / 2
+ color: Qt.alpha(Kirigami.Theme.backgroundColor, 0.4)
+ }
+
+ contentItem: Kirigami.Icon {
+ source: 'media-playback-start'
+ }
+ }
+
function playOrPause() {
console.log('playback state ==', video.playbackState);
if (video.playbackState == MediaPlayer.PlayingState) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 1:15 PM (13 m, 17 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38923
Default Alt Text
D149.1732310148.diff (1 KB)
Attached To
Mode
D149: Improve playback logic for videos
Attached
Detach File
Event Timeline
Log In to Comment