diff --git a/docs/pages/component/events.mdx b/docs/pages/component/events.mdx index 8326c5e6..3fd75b00 100644 --- a/docs/pages/component/events.mdx +++ b/docs/pages/component/events.mdx @@ -103,7 +103,7 @@ Note: On Android, you must set the [reportBandwidth](#reportbandwidth) prop to e ### `onBuffer` - + Callback function that is called when the player buffers. @@ -290,7 +290,7 @@ Example: ### `onPlaybackStateChanged` - + Callback function that is called when the playback state changes. @@ -461,7 +461,7 @@ Payload: none ### `onSeek` - + Callback function that is called when a seek completes. @@ -602,7 +602,7 @@ Example: ### `onVolumeChange` - + Callback function that is called when the volume of player changes. diff --git a/docs/pages/component/methods.mdx b/docs/pages/component/methods.mdx index 4043dc5e..bd4067c8 100644 --- a/docs/pages/component/methods.mdx +++ b/docs/pages/component/methods.mdx @@ -17,7 +17,7 @@ Take the player out of fullscreen mode. ### `pause` - + `pause(): Promise` @@ -40,7 +40,7 @@ On Android, this puts the navigation controls in fullscreen mode. It is not a co ### `resume` - + `resume(): Promise` @@ -100,7 +100,7 @@ tolerance is the max distance in milliseconds from the seconds position that's a ### `setVolume` - + `setVolume(value): Promise` @@ -108,7 +108,7 @@ This function will change the volume exactly like [volume](./props#volume) prope ### `getCurrentPosition` - + `getCurrentPosition(): Promise` diff --git a/docs/pages/component/props.mdx b/docs/pages/component/props.mdx index ef999202..7f804e63 100644 --- a/docs/pages/component/props.mdx +++ b/docs/pages/component/props.mdx @@ -128,7 +128,7 @@ When playing an HLS live stream with a `EXT-X-PROGRAM-DATE-TIME` tag configured, ### `controls` - + Determines whether to show player controls. @@ -873,7 +873,7 @@ textTracks={[ ### `showNotificationControls` - + Controls whether to show media controls in the notification area. For Android each Video component will have its own notification controls and for iOS only one notification control will be shown for the last Active Video component. diff --git a/docs/pages/index.md b/docs/pages/index.md index dd4d5281..33f20810 100644 --- a/docs/pages/index.md +++ b/docs/pages/index.md @@ -8,6 +8,7 @@ It allows to stream video files (m3u, mpd, mp4, ...) inside your react native ap - Exoplayer for android - AVplayer for iOS, tvOS and visionOS - Windows UWP for windows +- HTML5 for web - Trick mode support - Subtitles (embeded or side loaded) - DRM support diff --git a/docs/pages/installation.md b/docs/pages/installation.md index e09aa972..94293bc8 100644 --- a/docs/pages/installation.md +++ b/docs/pages/installation.md @@ -179,3 +179,12 @@ Select RCTVideo-tvOS Run `pod install` in the `visionos` directory of your project + +
+web + +Nothing to do, everything should work out of the box. + +Note that only basic video support is present, no hls/dash or ads/drm for now. + +
diff --git a/src/Video.web.tsx b/src/Video.web.tsx index 6f84683a..e0f5b3a0 100644 --- a/src/Video.web.tsx +++ b/src/Video.web.tsx @@ -5,7 +5,6 @@ import React, { useImperativeHandle, useRef, type RefObject, - useMemo, } from 'react'; import type {VideoRef, ReactVideoProps, VideoMetadata} from './types';