CONNECT Player SDK 5 for Browsers and Connected TV
5.28.x 5.27.x 5.26.x 5.25.x 5.24.x 5.23.x 5.22.x 5.21.x 5.20.x 5.19.x 5.18.x 5.17.x 5.16.x 5.15.x 5.14.x 5.13.x 5.12.x 5.11.x 5.10.x 5.9.x 5.7.x 5.6.x 5.5.x 5.4.x 5.3.x 5.2.x
5.28.x 5.27.x 5.26.x 5.25.x 5.24.x 5.23.x 5.22.x 5.21.x 5.20.x 5.19.x 5.18.x 5.17.x 5.16.x 5.15.x 5.14.x 5.13.x 5.12.x 5.11.x 5.10.x 5.9.x 5.7.x 5.6.x 5.5.x 5.4.x 5.3.x 5.2.x

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

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);
};