Expand description
GPUI integration for alhazen-core: a VideoPlayer entity and a video_view element.
Re-exports§
pub use self;
Structs§
- Metadata
- Title, artist, album and the other common tags, plus the cover. Every field is optional.
- Picture
- An embedded picture, still encoded (JPEG/PNG).
- Player
Config - Video
Player - A video player entity. Create with
cx.new(|cx| VideoPlayer::new(source, config, cx))and render withcrate::video_view. - Video
View
Enums§
- Player
Event - Player
State - Source
- Where media comes from.
Player::opentakes this rather than aMediaSourcebecause adaptive streams (HLS/DASH) are segment-based, not byte-based.
Functions§
- video_
view - Renders the current frame of a
VideoPlayer. Style it like adiv(.size_full(), etc.).