fix: ensure poster works as expected and add it to the sample (#3643)

* fix: ensure poster works as expected and add it to the sample
* chore: drop audioOnly property as not implemented on any platform
* fix(ios): do not save pause state before seeking
* fix(ts): onPlaybackRateChangeData was not correctly typed
This commit is contained in:
Olivier Bouillet
2024-04-05 10:35:57 +02:00
committed by GitHub
parent 051e884c8f
commit d6941392e0
7 changed files with 50 additions and 27 deletions

View File

@@ -29,17 +29,6 @@ Indicates whether the player allows switching to external playback mode such as
- **true (default)** - allow switching to external playback mode
- **false** - Don't allow switching to external playback mode
### `audioOnly`
<PlatformsList types={['All']} />
Indicates whether the player should only play the audio track and instead of displaying the video track, show the poster instead.
- **false (default)** - Display the video as normal
- **true** - Show the poster and play the audio
For this to work, the poster prop must be set.
### `audioOutput`
<PlatformsList types={['Android', 'iOS', 'visionOS']} />