Add support for using a TextureView in ExoPlayer

This commit is contained in:
Hampton Maxwell
2018-06-08 00:01:13 -07:00
parent e5a3deb51f
commit 066a0c9c16
5 changed files with 64 additions and 20 deletions

View File

@@ -232,6 +232,7 @@ var styles = StyleSheet.create({
* [resizeMode](#resizemode)
* [selectedTextTrack](#selectedtexttrack)
* [stereoPan](#stereopan)
* [useTextureView](#usetextureview)
* [volume](#volume)
#### ignoreSilentSwitch
@@ -346,6 +347,16 @@ Adjust the balance of the left and right audio channels. Any value between 1
Platforms: Android MediaPlayer
#### useTextureView
Output to a TextureView instead of the default SurfaceView. In general you will want to use SurfaceView because it provides better performance. However, SurfaceViews can't be animated, transformed or scaled. You also can't overlay multiple SurfaceViews.
useTextureView can only be set at same time you're setting the source.
* **false (default)** - Use a SurfaceView
* **true** - Use a TextureView
Platforms: Android ExoPlayer
#### volume
Adjust the volume.
* **1.0 (default)** - Play at full volume