Module video_player
Expand description
VideoPlayer — a reusable video surface with a full playback-controls overlay.
Two frame sources feed the same latest_frame: engine mode pumps an
attached [media::MediaEngine] each Widget::sync (used by the local
player, editor preview, and video app, so streaming + collaborative
playback land once). Push mode decodes streamed access units handed to
VideoPlayer::feed_frame (H.264) or VideoPlayer::feed_encoded (any
real-time codec) through a [media::RealtimeDecoder], which picks a
hardware decoder first. Push mode decodes only in builds where media’s
realtime feature is on (any app that streams video enables it); in other
builds the feed methods report that nothing was decoded.
Structs§
- NowPlaying
- Supplied so the player can publish it to the desktop media controls (MPRIS: media keys + the top-bar widget).
- Player
Setting prioritydecides placement:0tucks inside the settings-gear menu;>= 1promotes to its own icon button when there is room, highest first, with overflow falling back into the gear.- Video
Player
Enums§
- Playback
State - Player
Setting Control - The embedding app owns the meaning; the player owns the rendering and
reports interactions back via
VideoPlayer::take_setting_events. - Player
Setting Event - Drained by the host each frame via
VideoPlayer::take_setting_events.