update exoplayer to allow pre-init and content clear

This commit is contained in:
Nick
2021-06-30 11:34:02 +09:00
parent db58ba90f1
commit b5b5da0684
3 changed files with 21 additions and 4 deletions

View File

@@ -770,6 +770,12 @@ Platforms: Android ExoPlayer
#### source
Sets the media source. You can pass an asset loaded via require or an object with a uri.
Setting the source will trigger the player to attempt to load the provided media with all other given props. Please be sure that all props are provided before/at the same time as setting the source.
Rendering the player component with a null source will init the player, and start playing once a source value is provided.
Providing a null source value after loading a previous source will stop playback, and clear out the previous source content.
The docs for this prop are incomplete and will be updated as each option is investigated and tested.