Skip to content

Commit 18e2282

Browse files
authored
Playlist Event Segregation, Video Quality Metrics, and 8K Support (#62)
* feat: video quality metrics * fix: int to json * fix: version & remove content live form segments * fix: remove country line
1 parent 1b78d53 commit 18e2282

File tree

3 files changed

+323
-16
lines changed

3 files changed

+323
-16
lines changed

sampleapp_source/components_reset/components/PlayerTask.brs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,31 @@ sub playContent()
112112
contentInfo.contentId = "BIG BUCK BUNNY"
113113
m.top.video.content = contentNode
114114
PlayContentOnlyNoAds(contentInfo)
115+
else if selectionId = "playlist"
116+
createPlaylist()
117+
PlayContentOnlyNoAds(contentInfo)
115118
end if
116119
end sub
117120

121+
function createPlaylist()
122+
playlistNode = CreateObject("roSGNode", "ContentNode")
123+
for i = 0 to 1
124+
contentNode = CreateObject("roSGNode", "ContentNode")
125+
if i = 0
126+
contentNode.URL = "https://stream.mux.com/01RaH6QVoN7DIFtrui00Khqa02PM600wno2N.m3u8"
127+
contentNode.TITLE = "Test Stream MUX"
128+
else if i = 1
129+
contentNode.URL = "https://content.jwplatform.com/manifests/yp34SRmf.m3u8"
130+
contentNode.TITLE = "Test HLS"
131+
end if
132+
133+
contentNode.ContentType = "episode"
134+
playlistNode.appendChild(contentNode)
135+
end for
136+
m.top.video.contentIsPlaylist = true
137+
m.top.video.content = playlistNode
138+
end function
139+
118140
sub PlayContentOnlyNoAds(contentInfo as Object)
119141
m.top.facade.visible = false
120142
video = m.top.video

sampleapp_source/components_reset/components/VideoScene.brs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ sub setupContent()
3030
{title: "Error before playback", selectionID: "preplaybackerror"},
3131
{title: "Error during playback", selectionID: "playbackerror"},
3232
{title: "HLS stream no ads", selectionID: "hlsnoads"},
33-
{title: "DASH stream no ads", selectionID: "dashnoads"}
33+
{title: "DASH stream no ads", selectionID: "dashnoads"},
34+
{ title : "Playlist content, no ads", selectionID : "playlist" },
3435
]
3536

3637
listContent = createObject("roSGNode","ContentNode")

0 commit comments

Comments
 (0)