Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
BruceWayne11111
Reel Rookie

Video | segment.segSequence returns 0 for DASH assets with SegmentTimeline

Steps to Reproduce:
Sample code can be found at https://github.com/timalacey/samples/tree/dash-segSequence-0/media/VideoListExample

Observing `Video.downloadedSegment` and `Video.streamingSegment` and printing these fields gives us `.segSequence`

There are a number test streams, some include a `SegmentTimeline` tag ("description": "has SegmentTimeline" added to highlight these streams)

Expected Result:

all streams have a `segSequence` that increases over time


Actual Result:

Streams without a `SegmentTimeline` tag: return `.segSequence` as expected, increasing over time

Streams with a `SegmentTimeline` tag: always return `.segSequence=0`, see print statements below

Repeatable?
100%

 

onFieldChanged() |video.streamingSegment=<Component: roAssociativeArray> =
{
    segBitrateBps: 128000
    segSequence: 0
    segStartTime: 7.957
    segType: 1
    segUrl: "https://demo.unified-streaming.com/video/tears-of-steel/tears-of-steel.ism/dash/tears-of-steel-audio_eng=128002-381952.dash"
}|
onFieldChanged() |video.streamingSegment=<Component: roAssociativeArray> =
{
    segBitrateBps: 1501000
    segSequence: 0
    segStartTime: 8
    segType: 2
    segUrl: "https://demo.unified-streaming.com/video/tears-of-steel/tears-of-steel.ism/dash/tears-of-steel-video_eng=1501000-4800.dash"
}|
onFieldChanged() |video.downloadedSegment=<Component: roAssociativeArray> =
{
    bitrateBps: 2200000
    bufferLevel: 0
    bufferSize: 0
    downloadDuration: 1365
    ipAddress: ""
    segSequence: 0
    segSize: 1044035
    segStreamBandwidth: 2200
    segType: 2
    segUrl: "https://demo.unified-streaming.com/video/tears-of-steel/tears-of-steel.ism/dash/tears-of-steel-video_eng=2200000-21600.dash"
    status: 0
}|
onFieldChanged() |video.downloadedSegment=<Component: roAssociativeArray> =
{
    bitrateBps: 128002
    bufferLevel: 0
    bufferSize: 0
    downloadDuration: 671
    ipAddress: ""
    segSequence: 0
    segSize: 65151
    segStreamBandwidth: 128
    segType: 1
    segUrl: "https://demo.unified-streaming.com/video/tears-of-steel/tears-of-steel.ism/dash/tears-of-steel-audio_eng=128002-2301952.dash"
    status: 0
}|

 

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.