pub enum PlaybackPlan {
Direct {
container: Container,
video: Option<VideoCodec>,
audio: Option<PlannedAudio>,
subtitle: Option<PlannedSubtitle>,
source_codec: Option<String>,
},
Converted {
delivery: Delivery,
container: Container,
video: Option<ConvertedVideo>,
audio: Option<ConvertedAudio>,
subtitle: Option<ConvertedSubtitle>,
ladder: Vec<Rung>,
reasons: Vec<String>,
source_codec: Option<String>,
},
Unsupported {
reasons: Vec<String>,
},
Unknown,
}Variants§
Direct
The client plays the file as it is.
Fields
video: Option<VideoCodec>audio: Option<PlannedAudio>subtitle: Option<PlannedSubtitle>source_codec: Option<String>The source video’s RFC 6381 codec string as the plan judged
it against ClientCapabilities::video_codecs
(hvc1.2.4.L153.B0; dvh1.08.06 for Dolby Vision shown as
such): for a client’s log. None where the server did not read
it, or there is no video. It may be left out, and is None
then.
Converted
The server converts the file for this client (P2): copies the
streams that fit, encodes the ones that do not, and delivers the
result as delivery says. A remux is a plan whose streams are all
Copy.
Fields
video: Option<ConvertedVideo>audio: Option<ConvertedAudio>subtitle: Option<ConvertedSubtitle>ladder: Vec<Rung>The encodes an HLS player switches between as its link changes
(PX-21), highest first: video is the first of them. Empty for
one encode, as every plan but Auto quality over HLS is.
Unsupported
The client cannot play this selection. Each reason names a stream and why, e.g. “audio 0: dts not supported”.
Unknown
A plan kind this build does not know.
Implementations§
Source§impl PlaybackPlan
impl PlaybackPlan
Sourcepub fn source_codec(&self) -> Option<&str>
pub fn source_codec(&self) -> Option<&str>
Its source_codec: None where it has none, as an unsupported
plan has not.