Forum Discussion

daria's avatar
daria
Visitor
9 years ago

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!

1 Reply

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