From 97cfd9c2d01d2adfd7d2ef3a5a91883d2b275e0f Mon Sep 17 00:00:00 2001 From: mostafahasani Date: Mon, 20 May 2024 16:39:19 +0330 Subject: [PATCH 1/2] chore: update document link --- docs/pages/component/methods.mdx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/pages/component/methods.mdx b/docs/pages/component/methods.mdx index e68e0c5b1d..76ae5f8e15 100644 --- a/docs/pages/component/methods.mdx +++ b/docs/pages/component/methods.mdx @@ -80,7 +80,7 @@ Future: Seek to the specified position represented by seconds. seconds is a float value. -`seek()` can only be called after the `onLoad` event has fired. Once completed, the [onSeek](#onseek) event will be called. +`seek()` can only be called after the `onLoad` event has fired. Once completed, the [onSeek](https://thewidlarzgroup.github.io/react-native-video/component/events#onseek) event will be called. #### Exact seek @@ -92,6 +92,14 @@ By default iOS seeks within 100 milliseconds of the target position. If you need tolerance is the max distance in milliseconds from the seconds position that's allowed. Using a more exact tolerance can cause seeks to take longer. If you want to seek exactly, set tolerance to 0. +### `setVolume` + + + +`setVolume(value): Promise` + +This function will change the volume exactly like [volume](https://thewidlarzgroup.github.io/react-native-video/component/props#volume) property. default value and range are the same then. + ### Example Usage ```tsx From 070f57260cb48f3b47038771f1c029dd70f06c87 Mon Sep 17 00:00:00 2001 From: mostafahasani Date: Mon, 20 May 2024 17:20:56 +0330 Subject: [PATCH 2/2] fix: relative path --- docs/pages/component/methods.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pages/component/methods.mdx b/docs/pages/component/methods.mdx index 76ae5f8e15..755901ebb3 100644 --- a/docs/pages/component/methods.mdx +++ b/docs/pages/component/methods.mdx @@ -80,7 +80,7 @@ Future: Seek to the specified position represented by seconds. seconds is a float value. -`seek()` can only be called after the `onLoad` event has fired. Once completed, the [onSeek](https://thewidlarzgroup.github.io/react-native-video/component/events#onseek) event will be called. +`seek()` can only be called after the `onLoad` event has fired. Once completed, the [onSeek](./events#onseek) event will be called. #### Exact seek @@ -98,7 +98,7 @@ tolerance is the max distance in milliseconds from the seconds position that's a `setVolume(value): Promise` -This function will change the volume exactly like [volume](https://thewidlarzgroup.github.io/react-native-video/component/props#volume) property. default value and range are the same then. +This function will change the volume exactly like [volume](./props#volume) property. default value and range are the same then. ### Example Usage