chore(doc): update document (props & method) (#4072)

* chore: update method document

* chore: update method document

* chore: update method document

* fix: PR feedback

* chore: update description for controls prop
This commit is contained in:
Seyed Mostafa Hasani 2024-08-12 15:25:10 +03:30 committed by GitHub
parent 899bb822a5
commit cd41a1b234
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View File

@ -141,9 +141,9 @@ const someCoolFunctions = async () => {
videoRef.current.presentFullscreenPlayer();
videoRef.current.dismissFullscreenPlayer();
// pause or play the video
videoRef.current.play();
// pause or resume the video
videoRef.current.pause();
videoRef.current.resume();
// save video to your Photos with current filter prop
const response = await videoRef.current.save();

View File

@ -135,8 +135,7 @@ Determines whether to show player controls.
- **false (default)** - Don't show player controls
- **true** - Show player controls
Note on iOS, controls are always shown when in fullscreen mode.
Note on Android, native controls are available by default.
Controls are always shown in fullscreen mode, even when `controls={false}`.
If needed, you can also add your controls or use a package like [react-native-video-controls](https://github.com/itsnubix/react-native-video-controls) or [react-native-media-console](https://github.com/criszz77/react-native-media-console), see [Useful Side Project](/projects).
### `controlsStyles`