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:
@@ -297,11 +297,18 @@ export type OnAudioFocusChangedData = Readonly<{
|
||||
}>;
|
||||
|
||||
type ControlsStyles = Readonly<{
|
||||
hidePosition?: WithDefault<boolean, false>;
|
||||
hidePlayPause?: WithDefault<boolean, false>;
|
||||
hideForward?: WithDefault<boolean, false>;
|
||||
hideRewind?: WithDefault<boolean, false>;
|
||||
hideNext?: WithDefault<boolean, false>;
|
||||
hidePrevious?: WithDefault<boolean, false>;
|
||||
hideFullscreen?: WithDefault<boolean, false>;
|
||||
hideSeekBar?: WithDefault<boolean, false>;
|
||||
hideDuration?: WithDefault<boolean, false>;
|
||||
seekIncrementMS?: Int32;
|
||||
hideNavigationBarOnFullScreenMode?: WithDefault<boolean, true>;
|
||||
hideNotificationBarOnFullScreenMode?: WithDefault<boolean, true>;
|
||||
seekIncrementMS?: Int32;
|
||||
}>;
|
||||
|
||||
export type OnControlsVisibilityChange = Readonly<{
|
||||
|
@@ -251,9 +251,16 @@ export type AudioOutput = 'speaker' | 'earpiece';
|
||||
export type ControlsStyles = {
|
||||
hideSeekBar?: boolean;
|
||||
hideDuration?: boolean;
|
||||
seekIncrementMS?: number;
|
||||
hidePosition?: boolean;
|
||||
hidePlayPause?: boolean;
|
||||
hideForward?: boolean;
|
||||
hideRewind?: boolean;
|
||||
hideNext?: boolean;
|
||||
hidePrevious?: boolean;
|
||||
hideFullscreen?: boolean;
|
||||
hideNavigationBarOnFullScreenMode?: boolean;
|
||||
hideNotificationBarOnFullScreenMode?: boolean;
|
||||
seekIncrementMS?: number;
|
||||
};
|
||||
|
||||
export interface ReactVideoRenderLoaderProps {
|
||||
|
Reference in New Issue
Block a user