Skip to main content

Crate oxideav_source

Crate oxideav_source 

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

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:

Type Aliases§

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