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?
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: