MediaSource
enum · ferroui-media-video · v0.5.0
enum MediaSource
Members
File
File(std::path::PathBuf)
Url
Url(String)
Resource
Resource { name: String, content_type: String, encoded: std::sync::Arc<[u8]> }
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherCloneDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.