Skip to main content

Crate oxideav_source

Crate oxideav_source 

Source
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§

BufferedSource
Buffered, prefetching wrapper around any ReadSeek.
SourceRegistry
Registry mapping URI schemes to opener functions.

Traits§

ReadSeek
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 the file scheme.
with_defaults
Build a SourceRegistry pre-populated with the built-in file driver. Bare paths (without a scheme) also dispatch to it via the registry’s fall-back behaviour.

Type Aliases§

OpenSourceFn
Function signature for a source driver. Receives the full URI string and returns an opened reader.