"RokuChris" wrote:
Live content is expected to be delivered in a sliding window containing just the few most recent segments. http://sdkdocs.roku.com/display/sdkdoc/ ... iveContent
The Roku starts with the first segment in the playlist. My recollection is that iOS starts 3 segments from the end. You can work around this by giving the playStart attribute a very high value. viewtopic.php?f=34&t=66558&p=425721
Thanks Chris, I was able to solve both problems with PlayStart.
Setting PlayStart to a high value forces the player to start the stream at the end (live position). This ensures the video begins at the correct point; in order to also make sure it continues playing when it runs out of segments, I detect buffer under-run using the roVideoPlayerEvent.isStreamStarted() event combined with the info parameter "isUnderrun". If an under-run occurs, I assume the playlist has run out of segments, re-request the playlist, and begin playback again with PlayStart set very high.