Expand description
Source registry shim — oxideav_core::SourceRegistry plus the
built-in file:// driver and a prefetching BufferedSource
wrapper.
SourceRegistry, OpenSourceFn, and ReadSeek now live in
oxideav-core (so the unified RuntimeContext can hold the source
registry alongside codec / container / filter). This crate retains
the concrete file:// driver and the BufferedSource helper that
oxideav-http and the player rely on; it also exposes a
with_defaults free function that pre-populates a registry with
the file driver, matching the historical surface.
let reg = oxideav_source::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: - register
- Install the
file://(and bare-path) source driver into the given runtime context. Idempotent — replacing a prior registration of thefilescheme. - with_
defaults - Build a
SourceRegistrypre-populated with the built-infiledriver. Bare paths (without a scheme) also dispatch to it via the registry’s fall-back behaviour.
Type Aliases§
- Open
Source Fn - Function signature for a source driver. Receives the full URI string and returns an opened reader.