You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
526 B
33 lines
526 B
using Gtk 4.0; |
|
using Adw 1; |
|
using GstPlay 1.0; |
|
|
|
GstPlay.Play player { |
|
video-renderer: $VideoPlayerRenderer video_renderer {}; |
|
} |
|
|
|
template $VideoPlayer: Adw.Bin { |
|
Gtk.Overlay { |
|
Gtk.Picture video { |
|
paintable: bind video_renderer.paintable; |
|
} |
|
|
|
[overlay] |
|
Gtk.Label timestamp { |
|
visible: false; |
|
halign: start; |
|
valign: start; |
|
margin-start: 5; |
|
margin-top: 5; |
|
|
|
styles [ |
|
"osd", |
|
"timestamp", |
|
] |
|
|
|
layout { |
|
measure: true; |
|
} |
|
} |
|
} |
|
}
|
|
|