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:
@@ -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']} />
|
||||
|
Reference in New Issue
Block a user