feat(android): support hiding Exoplayer video duration on android (#4090)

* feat: support for hiding duration on Android

* docs: add hideDuration property to control styles documentation
This commit is contained in:
ashlyWeiting
2024-08-21 16:05:40 +08:00
committed by GitHub
parent 4611284247
commit 41e2bed6b3
5 changed files with 13 additions and 1 deletions

View File

@@ -147,6 +147,7 @@ Adjust the control styles. This prop is need only if `controls={true}` and is an
| Property | Type | Description |
|-----------------|---------|-----------------------------------------------------------------------------------------|
| hideSeekBar | boolean | The default value is `false`, allowing you to hide the seek bar for live broadcasts. |
| hideDuration | boolean | The default value is `false`, allowing you to hide the duration. |
| seekIncrementMS | number | The default value is `10000`. You can change the value to increment forward and rewind. |
Example with default values:
@@ -154,6 +155,7 @@ Example with default values:
```javascript
controlsStyles={{
hideSeekBar: false,
hideDuration: false,
seekIncrementMS: 10000,
}}
```