Expand description
Generic source registry for oxideav.
Containers in oxideav take a Box<dyn ReadSeek>; this crate is what
turns a URI into one. The built-in file driver handles bare paths
and file:// URIs; external drivers (e.g. oxideav-http) register
themselves into a SourceRegistry for additional schemes.
use oxideav_source::SourceRegistry;
let reg = SourceRegistry::with_defaults();
let _input = reg.open("/tmp/video.mp4").unwrap();Structs§
- Buffered
Source - Buffered, prefetching wrapper around any
ReadSeek. - Source
Registry - Registry mapping URI schemes to opener functions.
Traits§
- Read
Seek - Convenience trait bundle for seekable readers.
Functions§
- open_
file - Open a local file as a
Box<dyn ReadSeek>. Accepts:
Type Aliases§
- Open
Source Fn - Function signature for a source driver. Receives the full URI string and returns an opened reader.