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: 
daria
Level 7

Is nextContentIndex and related logic changed on 7.5?

Hi all!

I have a SceneGraph channel and use playlists (contentIsPlaylist=true) in Video. I've implemented fwd/rew and navigating to any video with nextContentIndex. That's how it looks like for navigating to index:


sub startPlayback(videoContent)
    m.videoNode.content = videoContent
    ? "[Playback] Start content, video index " m.top.videoIndex

    if m.top.videoIndex > 0
        m.videoNode.nextContentIndex = m.top.videoIndex
        m.videoNode.control = "skipcontent"
    end if
    
    m.videoNode.control = "play"
end sub

That worked fine but stopped working when I've updated my device to 7.5.

I changed my code for following:


sub startPlayback(videoContent)
    m.videoNode.content = videoContent
    ? "[Playback] Start content, video index " m.top.videoIndex

    m.videoNode.control = "play"
    if m.top.videoIndex > 0
        m.videoNode.nextContentIndex = m.top.videoIndex
        m.videoNode.control = "play"
    end if    
end sub

Playback starts with correct item, but the first video title is displayed while selected video is buffering.

I didn't found examples of using nextContentIndex, so I'm not sure I use it correctly. Could you please explain me what's going on and give me correct example?

Thanks!
0 Kudos
1 Reply
ishish
Level 7

Re: Is nextContentIndex and related logic changed on 7.5?

Experiencing the exact same thing. Looks like either a bug in the documentation or the firmware.
0 Kudos