feat(android): allow to hide specific controls (#4183)
* feat(android): enable to hide specific controls * fix: ts * fix: lint * docs: update `controlsStyles` docs
This commit is contained in:
@@ -146,21 +146,35 @@ 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. |
|
||||
| hideNavigationBarOnFullScreenMode | boolean | The default value is `true`, allowing you to hide the navigation bar on full-screen mode. |
|
||||
| hidePosition | boolean | Hides the position indicator. Default is `false`. |
|
||||
| hidePlayPause | boolean | Hides the play/pause button. Default is `false`. |
|
||||
| hideForward | boolean | Hides the forward button. Default is `false`. |
|
||||
| hideRewind | boolean | Hides the rewind button. Default is `false`. |
|
||||
| hideNext | boolean | Hides the next button. Default is `false`. |
|
||||
| hidePrevious | boolean | Hides the previous button. Default is `false`. |
|
||||
| hideFullscreen | boolean | Hides the fullscreen button. Default is `false`. |
|
||||
| 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. |
|
||||
| hideNavigationBarOnFullScreenMode | boolean | The default value is `true`, allowing you to hide the navigation bar on full-screen mode. |
|
||||
| hideNotificationBarOnFullScreenMode | boolean | The default value is `true`, allowing you to hide the notification bar on full-screen mode. |
|
||||
| seekIncrementMS | number | The default value is `10000`. You can change the value to increment forward and rewind. |
|
||||
|
||||
Example with default values:
|
||||
|
||||
```javascript
|
||||
controlsStyles={{
|
||||
hidePosition: false,
|
||||
hidePlayPause: false,
|
||||
hideForward: false,
|
||||
hideRewind: false,
|
||||
hideNext: false,
|
||||
hidePrevious: false,
|
||||
hideFullscreen: false,
|
||||
hideSeekBar: false,
|
||||
hideDuration: false,
|
||||
seekIncrementMS: 10000,
|
||||
hideNavigationBarOnFullScreenMode: true,
|
||||
hideNotificationBarOnFullScreenMode: true,
|
||||
seekIncrementMS: 10000,
|
||||
}}
|
||||
```
|
||||
|
||||
@@ -510,7 +524,7 @@ If `renderLoader` is provided, `poster` and `posterResizeMode` will be ignored.
|
||||
renderLoader is either a component or a function returning a component.
|
||||
It is recommended to use the function for optimization matter.
|
||||
|
||||
`renderLoader` function be called with parameters of type `ReactVideoRenderLoaderProps` to be able to adapt loader
|
||||
`renderLoader` function be called with parameters of type `ReactVideoRenderLoaderProps` to be able to adapt loader
|
||||
|
||||
```typescript
|
||||
interface ReactVideoRenderLoaderProps {
|
||||
|
Reference in New Issue
Block a user