pub struct ClosedCaptionDecl {
pub instream_id: String,
pub name: String,
pub language: String,
}Available on crate feature
std only.Expand description
Operator override of how one detected caption stream is advertised
(RFC 8216bis §4.4.6.1, Apple HLS authoring spec item 4.4). It never makes
a stream appear: a stream is advertised only once the video is seen to
carry it. Consumed by HlsOriginBuilder::closed_caption_overrides.
Fields§
§instream_id: StringThe INSTREAM-ID this override applies to: "CC1".."CC4" or
"SERVICE1".."SERVICE63".
name: StringNAME; empty keeps the default, the INSTREAM-ID itself.
language: StringLANGUAGE (BCP 47); empty omits the attribute. The bitstream carries
no language, and Apple’s mediastreamvalidator flags the placeholder
"und" as an unrecognised subtag, so none is invented; Apple’s
authoring rule 4.4 asks for one, which is what this field is for.
Trait Implementations§
Source§impl Clone for ClosedCaptionDecl
impl Clone for ClosedCaptionDecl
Source§impl Debug for ClosedCaptionDecl
impl Debug for ClosedCaptionDecl
Source§impl Default for ClosedCaptionDecl
impl Default for ClosedCaptionDecl
Source§impl<'de> Deserialize<'de> for ClosedCaptionDecl
impl<'de> Deserialize<'de> for ClosedCaptionDecl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ClosedCaptionDecl
Source§impl PartialEq for ClosedCaptionDecl
impl PartialEq for ClosedCaptionDecl
Source§impl Serialize for ClosedCaptionDecl
impl Serialize for ClosedCaptionDecl
impl StructuralPartialEq for ClosedCaptionDecl
Auto Trait Implementations§
impl Forget for ClosedCaptionDecl
impl Freeze for ClosedCaptionDecl
impl RefUnwindSafe for ClosedCaptionDecl
impl Send for ClosedCaptionDecl
impl Sync for ClosedCaptionDecl
impl Unpin for ClosedCaptionDecl
impl UnsafeUnpin for ClosedCaptionDecl
impl UnwindSafe for ClosedCaptionDecl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more