mirror of
https://github.com/v0l/m3u8-rs.git
synced 2025-06-20 18:39:50 +00:00
SessionData: Must have either VALUE or URI, but not both.
If SessionData has a value, don't write the URI and vice-versa. As per https://tools.ietf.org/html/rfc8216#section-4.3.4.4 EXT-X-SESSION-DATA must have one or the other, not both.
This commit is contained in:
13
tests/lib.rs
13
tests/lib.rs
@ -333,12 +333,13 @@ fn create_and_parse_master_playlist_full() {
|
||||
closed_captions: Some("closed_captions".into()),
|
||||
}
|
||||
],
|
||||
session_data: Some(SessionData {
|
||||
data_id: "****".into(),
|
||||
value: "%%%%".into(),
|
||||
uri: "++++".into(),
|
||||
language: Some("SessionDataLanguage".into()),
|
||||
}),
|
||||
session_data: Some(
|
||||
SessionData {
|
||||
data_id: "****".into(),
|
||||
field: SessionDataField::Value("%%%%".to_string()),
|
||||
language: Some("SessionDataLanguage".into()),
|
||||
}
|
||||
),
|
||||
session_key: Some(SessionKey(Key {
|
||||
method: "AES-128".into(),
|
||||
uri: Some("https://secure.domain.com".into()),
|
||||
|
Reference in New Issue
Block a user