FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MediaSource

    enum · ferroui-media-video · v0.5.0

    enum MediaSource
    

    View source

    Members

    File

    File(std::path::PathBuf)
    

    Source

    Url

    Url(String)
    

    Source

    Resource

    Resource { name: String, content_type: String, encoded: std::sync::Arc<[u8]> }
    

    Source

    prepare_native

    fn prepare_native(self: Self, cache_directory: Option<PathBuf>) -> MediaFuture<PreparedMediaSource>
    

    Resolve supported native URLs/files or write an encoded resource to a scoped private file. Pass Android's application cache directory there; other hosts may use their OS temporary directory. At most four writes run concurrently across providers; a further preparation waits for one to finish. Abandoning preparation cancels between bounded chunks and retires a file produced after the future was dropped.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug

    Availability

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