Skip to content

Commit

Permalink
chore(examples/basic): add startPosition sample (#3718)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
freeboub authored Apr 26, 2024
1 parent 2cd49b5 commit a1090a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/basic/src/VideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1090a1

Please sign in to comment.