FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MediaPlayerElement

    struct · ferroui-media-video-controls · v0.5.0

    struct MediaPlayerElement
    

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<MediaPlayerElement>
    

    Returns a strong reference to this object.

    Source

    source_property

    fn source_property() -> &'static StyledProperty<Option<String>>
    

    Source

    autoplay_property

    fn autoplay_property() -> &'static StyledProperty<bool>
    

    Source

    are_transport_controls_enabled_property

    fn are_transport_controls_enabled_property() -> &'static StyledProperty<bool>
    

    Source

    poster_source_property

    fn poster_source_property() -> &'static StyledProperty<Option<Rc<dyn IImage>>>
    

    Source

    is_full_window_property

    fn is_full_window_property() -> &'static StyledProperty<bool>
    

    Source

    stretch_property

    fn stretch_property() -> &'static StyledProperty<Stretch>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    source_uri

    fn source_uri(self: &Self) -> Option<String>
    

    The focused markup Source property accepts a file path or supported network/file URL. Encoded resources use set_source; shared sessions use set_media_player. Configure a provider factory before attaching a new declarative view. Selection alone never enables autoplay.

    Source

    set_source_uri

    fn set_source_uri(self: &Self, source: Option<String>)
    

    Source

    autoplay

    fn autoplay(self: &Self) -> bool
    

    Source

    set_autoplay

    fn set_autoplay(self: &Self, value: bool)
    

    Source

    are_transport_controls_enabled

    fn are_transport_controls_enabled(self: &Self) -> bool
    

    Source

    set_are_transport_controls_enabled

    fn set_are_transport_controls_enabled(self: &Self, value: bool)
    

    Source

    stretch

    fn stretch(self: &Self) -> Stretch
    

    Source

    set_stretch

    fn set_stretch(self: &Self, value: Stretch)
    

    Source

    poster_source

    fn poster_source(self: &Self) -> Option<Rc<dyn IImage>>
    

    Source

    set_poster_source

    fn set_poster_source(self: &Self, value: Option<Rc<dyn IImage>>)
    

    Source

    is_full_window

    fn is_full_window(self: &Self) -> bool
    

    Source

    set_is_full_window

    fn set_is_full_window(self: &Self, value: bool)
    

    Source

    transport_controls

    fn transport_controls(self: &Self) -> Ref<MediaTransportControls>
    

    Source

    presenter

    fn presenter(self: &Self) -> Ref<MediaPlayerPresenter>
    

    Source

    media_player

    fn media_player(self: &Self) -> Option<MediaPlayer>
    

    Source

    errors

    fn errors(self: &Self) -> &MediaEvent<MediaError>
    

    Source

    set_placeholder

    fn set_placeholder(self: &Self, content: Option<Ref<Control>>)
    

    Supplies normal styled content such as a poster Image or a custom placeholder. It remains visible until the compositor accepts a frame.

    Source

    set_media_player

    fn set_media_player(self: &Self, player: Option<&MediaPlayer>, importer: Option<Rc<dyn TextureFrameImporter>>)
    

    Caller-supplied sessions remain alive when this element detaches.

    Source

    set_source

    fn set_source(self: &Self, source: MediaSource, provider: Rc<dyn MediaPlayerProvider>, importer: Rc<dyn TextureFrameImporter>) -> MediaFuture<()>
    

    Creates an owned player for a source. This element retires it on detach.

    Source

    set_provider_factory

    fn set_provider_factory(self: &Self, factory: Option<Rc<MediaPlayerProviderFactory>>)
    

    Enables automatic recovery for sessions owned by this element. Supplied players remain caller-owned; their owner calls rebind_provider once for all consumers. Removing the factory cancels pending element recovery.

    Source

    play

    fn play(self: &Self) -> MediaFuture<()>
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.