From cd41a1b234d363eff098e62ed642a9b4a61bf6c9 Mon Sep 17 00:00:00 2001 From: Seyed Mostafa Hasani Date: Mon, 12 Aug 2024 15:25:10 +0330 Subject: [PATCH] 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 --- docs/pages/component/methods.mdx | 4 ++-- docs/pages/component/props.mdx | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/pages/component/methods.mdx b/docs/pages/component/methods.mdx index 4043dc5e..7e66040b 100644 --- a/docs/pages/component/methods.mdx +++ b/docs/pages/component/methods.mdx @@ -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(); diff --git a/docs/pages/component/props.mdx b/docs/pages/component/props.mdx index c1603b8d..b7e1a577 100644 --- a/docs/pages/component/props.mdx +++ b/docs/pages/component/props.mdx @@ -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`