Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

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