Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
venkatareddy
Level 7

progress bar is not diplaying in video

Progress bar is not visible for the first video. When I press back button and play the video again, progress bar is visible.
0 Kudos
4 Replies
DadOfTwo
Level 7

Re: progress bar is not diplaying in video

There's not enough information to help with this.

Can you post some example code to give us a clue?
0 Kudos
venkatareddy
Level 7

Re: progress bar is not diplaying in video

We have the home panel. In home panel we have rowList if we click on rowlist we shows Details Screen in detailsScreen we have the play button if we click on play button video play 

Sub OnContentChange()
    videocontent = createObject("RoSGNode", "ContentNode")
    videocontent.title = "testTitle"
     videocontent.streamformat = "mp4"
    videocontent.url = "http://roku.content.video.llnw.net/smedia/59021fabe3b645968e382ac726cd6c7b/Gb/siCt-V7LOSU08W_Ve1ByJY5N9emKZeXZvnrH2Yb9c/117_segment_2_twitch__nw_060515.mp4"
    m.video.content = videocontent
End Sub

function playButtonClick() as void
            m.video.visible = true
            m.video.setFocus(true)
            m.video.control = "play"
            m.video.observeField("state", "OnVideoPlayerStateChange")
end function
0 Kudos
DadOfTwo
Level 7

Re: progress bar is not diplaying in video

Hi

The param on the Video Node to display the video progress bar is called enableUI.

You can define this in the XML in SG:

<Video id="videoId" enableUI="true" />    


Or in your embedded Script or .brs file:

sub init()
m.video = m.top.findNode("videoId")
m.video.enableUI = true
end sub
0 Kudos
venkatareddy
Level 7

Re: progress bar is not diplaying in video

Hi 
I have already used EnableUi in xml file but progress bar is not displaying
0 Kudos