Download crates/bex-types/src/stream.rs from krystv/pluginengine01: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/krystv/pluginengine01/resolve/main/crates/bex-types/src/stream.rs
- Command line
-
hf download hf://krystv/pluginengine01/crates/bex-types/src/stream.rs
-
curl -L -o stream.rs https://huggingface.co/krystv/pluginengine01/resolve/main/crates/bex-types/src/stream.rs
1.09 kB
| pub struct VideoResolution { pub width: u32, pub height: u32, pub hdr: bool, pub label: String } | |
| pub struct VideoTrack { | |
| pub resolution: VideoResolution, pub url: String, | |
| pub mime_type: Option<String>, pub bitrate: Option<u64>, pub codecs: Option<String>, | |
| } | |
| pub struct SubtitleTrack { pub label: String, pub url: String, pub language: Option<String>, pub format: Option<String> } | |
| pub struct Server { pub id: String, pub label: String, pub url: String, pub priority: u8, pub extra: Vec<(String, String)> } | |
| pub struct StreamSource { | |
| pub id: String, pub label: String, pub format: String, | |
| pub manifest_url: Option<String>, pub videos: Vec<VideoTrack>, | |
| pub subtitles: Vec<SubtitleTrack>, pub headers: Vec<(String, String)>, | |
| pub extra: Vec<(String, String)>, | |
| } | |