mirror of
https://github.com/v0l/m3u8-rs.git
synced 2025-06-21 10:50:44 +00:00
Store VariantStream attributes in more specific types and validate them
This commit is contained in:

committed by
Sebastian Dröge

parent
0789098d7d
commit
6559e45b49
15
tests/lib.rs
15
tests/lib.rs
@ -217,16 +217,19 @@ fn create_and_parse_master_playlist_full() {
|
||||
variants: vec![VariantStream {
|
||||
is_i_frame: false,
|
||||
uri: "masterplaylist-uri".into(),
|
||||
bandwidth: "10010010".into(),
|
||||
average_bandwidth: Some("10010010".into()),
|
||||
bandwidth: 10010010,
|
||||
average_bandwidth: Some(10010010),
|
||||
codecs: Some("TheCODEC".into()),
|
||||
resolution: Some("1000x3000".into()),
|
||||
frame_rate: Some("60".into()),
|
||||
hdcp_level: Some("NONE".into()),
|
||||
resolution: Some(Resolution {
|
||||
width: 1000,
|
||||
height: 3000,
|
||||
}),
|
||||
frame_rate: Some(60.0),
|
||||
hdcp_level: Some(HDCPLevel::None),
|
||||
audio: Some("audio".into()),
|
||||
video: Some("video".into()),
|
||||
subtitles: Some("subtitles".into()),
|
||||
closed_captions: Some("closed_captions".into()),
|
||||
closed_captions: Some(ClosedCaptionGroupId::GroupId("closed_captions".into())),
|
||||
}],
|
||||
session_data: vec![SessionData {
|
||||
data_id: "****".into(),
|
||||
|
Reference in New Issue
Block a user