Forum Discussion
Adding the video player
I've completed this video, when I select the video to play it flashes but doesn't play.
I've removed all of the code I typed in and replaced it with the code in github (https://github.com/rokudev/scenegraph-master-sample/tree/master/VideoPlayer)
The first step (GridScreen) worked fine.
Is this code still valid? It's 4 years old and I wonder if something has changed?
- Baradanikto2 years agoRoku Guru
TomB3 You may want to take a look at the Wizard tool I've created to migrate from Direct Publisher to SceneGraph. It's in my signature below.
- TomB32 years agoNewbie
Thanks. Using your app I was able to build a working app. Now I need to figure out how it works!
- wavedingo11 months agoNewbie
I had the same problem, there is a missing detail in the video which I only discovered looking at the example code in GitHub.
in the "MainLoaderTask.brs" file you have to import the video content (URL and format) from the json feed... in MainLoaderTask.brs, go to the GetItemData function and just below where you get the video duration from the previous exercise (item.length = video.content.duration - for me it was right after line 60), enter the following lines:
' populate meta-data for playbackitem.url = video.content.videos[0].urlitem.streamFormat = video.content.videos[0].videoType