Skip to content

Commit

Permalink
Playlist Event Segregation, Video Quality Metrics, and 8K Support (#62)
Browse files Browse the repository at this point in the history
* feat: video quality metrics

* fix: int to json

* fix: version & remove content live form segments

* fix: remove country line
  • Loading branch information
meet-fx authored Oct 3, 2024
1 parent 1b78d53 commit 18e2282
Show file tree
Hide file tree
Showing 3 changed files with 323 additions and 16 deletions.
22 changes: 22 additions & 0 deletions sampleapp_source/components_reset/components/PlayerTask.brs
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,31 @@ sub playContent()
contentInfo.contentId = "BIG BUCK BUNNY"
m.top.video.content = contentNode
PlayContentOnlyNoAds(contentInfo)
else if selectionId = "playlist"
createPlaylist()
PlayContentOnlyNoAds(contentInfo)
end if
end sub

function createPlaylist()
playlistNode = CreateObject("roSGNode", "ContentNode")
for i = 0 to 1
contentNode = CreateObject("roSGNode", "ContentNode")
if i = 0
contentNode.URL = "https://stream.mux.com/01RaH6QVoN7DIFtrui00Khqa02PM600wno2N.m3u8"
contentNode.TITLE = "Test Stream MUX"
else if i = 1
contentNode.URL = "https://content.jwplatform.com/manifests/yp34SRmf.m3u8"
contentNode.TITLE = "Test HLS"
end if

contentNode.ContentType = "episode"
playlistNode.appendChild(contentNode)
end for
m.top.video.contentIsPlaylist = true
m.top.video.content = playlistNode
end function

sub PlayContentOnlyNoAds(contentInfo as Object)
m.top.facade.visible = false
video = m.top.video
Expand Down
3 changes: 2 additions & 1 deletion sampleapp_source/components_reset/components/VideoScene.brs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ sub setupContent()
{title: "Error before playback", selectionID: "preplaybackerror"},
{title: "Error during playback", selectionID: "playbackerror"},
{title: "HLS stream no ads", selectionID: "hlsnoads"},
{title: "DASH stream no ads", selectionID: "dashnoads"}
{title: "DASH stream no ads", selectionID: "dashnoads"},
{ title : "Playlist content, no ads", selectionID : "playlist" },
]

listContent = createObject("roSGNode","ContentNode")
Expand Down
Loading

0 comments on commit 18e2282

Please sign in to comment.