Add HDCP-LEVEL and CHANNELS fields.

Add support for parsing / generating HDCP-LEVEL in a VariantStream
and CHANNELS in AlternativeMedia. The fields were added after
draft-pantos-http-live-streaming-19.txt and brings things up to date
with RFC 8216.
This commit is contained in:
Jan Schmidt
2021-01-20 21:25:52 +11:00
parent b75379437d
commit 5fe3fc309c
2 changed files with 8 additions and 1 deletions

View File

@ -314,6 +314,7 @@ fn create_and_parse_master_playlist_full() {
forced: true, // Its absence indicates an implicit value of NO
instream_id: Some("instream_id".into()),
characteristics: Some("characteristics".into()),
channels: Some("channels".into()),
}
],
variants: vec![
@ -325,11 +326,11 @@ fn create_and_parse_master_playlist_full() {
codecs: Some("TheCODEC".into()),
resolution: Some("1000x3000".into()),
frame_rate: Some("60".into()),
hdcp_level: Some("NONE".into()),
audio: Some("audio".into()),
video: Some("video".into()),
subtitles: Some("subtitles".into()),
closed_captions: Some("closed_captions".into()),
}
],
session_data: Some(SessionData {