feat(android): implement asset folder playback (#3733)

* fix(ts): onPlaybackRateChangeData was not correctly typed

* fix: ensure tracks are well displayed in the sample

* feat(android): implement playback from asset folder

* chore(android): fix linter

* chore: move sample mp4 from package assets to exemple assets
This commit is contained in:
Olivier Bouillet
2024-05-06 21:51:17 +02:00
committed by GitHub
parent 51e22abfe3
commit e05da4e9fe
7 changed files with 46 additions and 49 deletions

View File

@@ -638,6 +638,18 @@ source={{ uri: 'file:///sdcard/Movies/sintel.mp4' }}
Note: Your app will need to request permission to read external storage if you're accessing a file outside your app.
##### File from asset folder (asset://)
<PlatformsList types={['Android']} />
Allows to play a video file from the asset folder from the application
Example:
```javascript
source={{ uri: 'asset:///sintel.mp4' }}
```
##### iPod Library (ipod-library://)
<PlatformsList types={['iOS']} />