Skip to main content
Skip table of contents

Start Time

The SDK provides an option to start the DASH or HLS playback from a bookmark or offset into the timeline of a stream.

The startTime attribute is provided in the source object for the App to set the desired start point in the stream. A value of 0 will start a stream at the oldest point, a value of Infinity will start the stream at the newest point and any positive number of seconds will join at that specified offset from the oldest point.

Example code

CODE
window.changeStreamClicked = function () {
    var source = {
        src: "https://livesim.dashif.org/livesim-chunked/testpic4_8s/Manifest.mpd",
        type: "application/dash+xml",
		startTime: 300, // start at 5 minutes into the stream
    };
    window.player.src(source);
};
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.