From a1090a1639d01796a06f1cb00a01ce27a055c057 Mon Sep 17 00:00:00 2001 From: Olivier Bouillet <62574056+freeboub@users.noreply.github.com> Date: Fri, 26 Apr 2024 09:43:39 +0200 Subject: [PATCH] chore(examples/basic): add `startPosition` sample (#3718) * fix(ts): onPlaybackRateChangeData was not correctly typed * fix: ensure tracks are well displayed in the sample * fix: fix sample style & avoid changing channel onEnd when looping is enable * chore: add startPosition in the sample * chore: update startPosition for easier testing --- examples/basic/src/VideoPlayer.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/basic/src/VideoPlayer.tsx b/examples/basic/src/VideoPlayer.tsx index 843cb145..e437b2b1 100644 --- a/examples/basic/src/VideoPlayer.tsx +++ b/examples/basic/src/VideoPlayer.tsx @@ -133,6 +133,11 @@ class VideoPlayer extends Component { description: 'sintel with subtitles', uri: 'https://bitmovin-a.akamaihd.net/content/sintel/hls/playlist.m3u8', }, + { + description: 'sintel starts at 20sec', + uri: 'https://bitmovin-a.akamaihd.net/content/sintel/hls/playlist.m3u8', + startPosition: 50000, + }, { description: 'BigBugBunny sideLoaded subtitles', // sideloaded subtitles wont work for streaming like HLS on ios