Skip to main content

Crate alhazen_gpui

Crate alhazen_gpui 

Source
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).
PlayerConfig
VideoPlayer
A video player entity. Create with cx.new(|cx| VideoPlayer::new(source, config, cx)) and render with crate::video_view.
VideoView

Enums§

PlayerEvent
PlayerState
Source
Where media comes from. Player::open takes this rather than a MediaSource because adaptive streams (HLS/DASH) are segment-based, not byte-based.

Functions§

video_view
Renders the current frame of a VideoPlayer. Style it like a div (.size_full(), etc.).