1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! 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.
//!
//! ```no_run
//! let reg = oxideav_source::with_defaults();
//! let _input = reg.open("/tmp/video.mp4").unwrap();
//! ```
pub use ;
pub use BufferedSource;
pub use open_file;
/// 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.
/// Install the `file://` (and bare-path) source driver into the given
/// runtime context. Idempotent — replacing a prior registration of the
/// `file` scheme.