Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85827865
D149.1793343245.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D149.1793343245.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
Thu, Oct 29, 11:54 PM (5 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1800765
Default Alt Text
D149.1793343245.diff (1 KB)
Attached To
Mode
D149: Improve playback logic for videos
Attached
Detach File
Event Timeline