add useSecureView prop to prevent screen recording

This commit is contained in:
Gabriel
2022-02-14 21:17:22 -04:00
parent 2ab029995f
commit 2af360a7bb
5 changed files with 41 additions and 1 deletions

View File

@@ -316,6 +316,7 @@ var styles = StyleSheet.create({
* [textTracks](#texttracks)
* [trackId](#trackId)
* [useTextureView](#usetextureview)
* [useSecureView](#useSecureView)
* [volume](#volume)
* [localSourceEncryptionKeyScheme](#localSourceEncryptionKeyScheme)
@@ -911,6 +912,18 @@ useTextureView can only be set at same time you're setting the source.
Platforms: Android ExoPlayer
#### useSecureView
Force the output to a SurfaceView and enables the secure surface.
This will override useTextureView flag.
SurfaceView is is the only one that can be labeled as secure.
* **true** - Use security
* **false (default)** - Do not use security
Platforms: Android ExoPlayer
#### volume
Adjust the volume.
* **1.0 (default)** - Play at full volume