mirror of
https://github.com/rutgersc/m3u8-rs.git
synced 2024-12-23 06:56:29 +00:00
The TYPE
attribute uses CLOSED-CAPTIONS
and not CLOSEDCAPTIONS
See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-10#section-4.4.6.1
This commit is contained in:
parent
836ef1caaf
commit
cca02b239d
1 changed files with 2 additions and 2 deletions
|
@ -279,7 +279,7 @@ impl FromStr for AlternativeMediaType {
|
|||
"AUDIO" => Ok(AlternativeMediaType::Audio),
|
||||
"VIDEO" => Ok(AlternativeMediaType::Video),
|
||||
"SUBTITLES" => Ok(AlternativeMediaType::Subtitles),
|
||||
"CLOSEDCAPTIONS" => Ok(AlternativeMediaType::ClosedCaptions),
|
||||
"CLOSED-CAPTIONS" => Ok(AlternativeMediaType::ClosedCaptions),
|
||||
_ => Err(format!(
|
||||
"Unable to create AlternativeMediaType from {:?}",
|
||||
s
|
||||
|
@ -303,7 +303,7 @@ impl fmt::Display for AlternativeMediaType {
|
|||
AlternativeMediaType::Audio => "AUDIO",
|
||||
AlternativeMediaType::Video => "VIDEO",
|
||||
AlternativeMediaType::Subtitles => "SUBTITLES",
|
||||
AlternativeMediaType::ClosedCaptions => "CLOSEDCAPTIONS",
|
||||
AlternativeMediaType::ClosedCaptions => "CLOSED-CAPTIONS",
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue