Update the doc for web things
This commit is contained in:
parent
39dd30b762
commit
27880f5212
@ -103,7 +103,7 @@ Note: On Android, you must set the [reportBandwidth](#reportbandwidth) prop to e
|
|||||||
|
|
||||||
### `onBuffer`
|
### `onBuffer`
|
||||||
|
|
||||||
<PlatformsList types={['Android', 'iOS']} />
|
<PlatformsList types={['Android', 'iOS', 'web']} />
|
||||||
|
|
||||||
Callback function that is called when the player buffers.
|
Callback function that is called when the player buffers.
|
||||||
|
|
||||||
@ -290,7 +290,7 @@ Example:
|
|||||||
|
|
||||||
### `onPlaybackStateChanged`
|
### `onPlaybackStateChanged`
|
||||||
|
|
||||||
<PlatformsList types={['Android', 'iOS', 'visionOS']} />
|
<PlatformsList types={['Android', 'iOS', 'visionOS', 'web']} />
|
||||||
|
|
||||||
Callback function that is called when the playback state changes.
|
Callback function that is called when the playback state changes.
|
||||||
|
|
||||||
@ -461,7 +461,7 @@ Payload: none
|
|||||||
|
|
||||||
### `onSeek`
|
### `onSeek`
|
||||||
|
|
||||||
<PlatformsList types={['Android', 'iOS', 'Windows UWP']} />
|
<PlatformsList types={['Android', 'iOS', 'Windows UWP', 'web']} />
|
||||||
|
|
||||||
Callback function that is called when a seek completes.
|
Callback function that is called when a seek completes.
|
||||||
|
|
||||||
@ -602,7 +602,7 @@ Example:
|
|||||||
|
|
||||||
### `onVolumeChange`
|
### `onVolumeChange`
|
||||||
|
|
||||||
<PlatformsList types={['Android', 'iOS', 'visionOS']} />
|
<PlatformsList types={['Android', 'iOS', 'visionOS', 'web']} />
|
||||||
|
|
||||||
Callback function that is called when the volume of player changes.
|
Callback function that is called when the volume of player changes.
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ Take the player out of fullscreen mode.
|
|||||||
|
|
||||||
### `pause`
|
### `pause`
|
||||||
|
|
||||||
<PlatformsList types={['Android', 'iOS']} />
|
<PlatformsList types={['Android', 'iOS', 'web']} />
|
||||||
|
|
||||||
`pause(): Promise<void>`
|
`pause(): Promise<void>`
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ On Android, this puts the navigation controls in fullscreen mode. It is not a co
|
|||||||
|
|
||||||
### `resume`
|
### `resume`
|
||||||
|
|
||||||
<PlatformsList types={['Android', 'iOS']} />
|
<PlatformsList types={['Android', 'iOS', 'web']} />
|
||||||
|
|
||||||
`resume(): Promise<void>`
|
`resume(): Promise<void>`
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ tolerance is the max distance in milliseconds from the seconds position that's a
|
|||||||
|
|
||||||
### `setVolume`
|
### `setVolume`
|
||||||
|
|
||||||
<PlatformsList types={['Android', 'iOS']} />
|
<PlatformsList types={['Android', 'iOS', 'web']} />
|
||||||
|
|
||||||
`setVolume(value): Promise<void>`
|
`setVolume(value): Promise<void>`
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ This function will change the volume exactly like [volume](./props#volume) prope
|
|||||||
|
|
||||||
### `getCurrentPosition`
|
### `getCurrentPosition`
|
||||||
|
|
||||||
<PlatformsList types={['Android', 'iOS']} />
|
<PlatformsList types={['Android', 'iOS', 'web']} />
|
||||||
|
|
||||||
`getCurrentPosition(): Promise<number>`
|
`getCurrentPosition(): Promise<number>`
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ When playing an HLS live stream with a `EXT-X-PROGRAM-DATE-TIME` tag configured,
|
|||||||
|
|
||||||
### `controls`
|
### `controls`
|
||||||
|
|
||||||
<PlatformsList types={['Android', 'iOS', 'visionOS']} />
|
<PlatformsList types={['Android', 'iOS', 'visionOS', 'web']} />
|
||||||
|
|
||||||
Determines whether to show player controls.
|
Determines whether to show player controls.
|
||||||
|
|
||||||
@ -873,7 +873,7 @@ textTracks={[
|
|||||||
|
|
||||||
### `showNotificationControls`
|
### `showNotificationControls`
|
||||||
|
|
||||||
<PlatformsList types={['Android', 'iOS']} />
|
<PlatformsList types={['Android', 'iOS', 'web']} />
|
||||||
|
|
||||||
Controls whether to show media controls in the notification area.
|
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.
|
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.
|
||||||
|
@ -8,6 +8,7 @@ It allows to stream video files (m3u, mpd, mp4, ...) inside your react native ap
|
|||||||
- Exoplayer for android
|
- Exoplayer for android
|
||||||
- AVplayer for iOS, tvOS and visionOS
|
- AVplayer for iOS, tvOS and visionOS
|
||||||
- Windows UWP for windows
|
- Windows UWP for windows
|
||||||
|
- HTML5 for web
|
||||||
- Trick mode support
|
- Trick mode support
|
||||||
- Subtitles (embeded or side loaded)
|
- Subtitles (embeded or side loaded)
|
||||||
- DRM support
|
- DRM support
|
||||||
|
@ -179,3 +179,12 @@ Select RCTVideo-tvOS
|
|||||||
Run `pod install` in the `visionos` directory of your project
|
Run `pod install` in the `visionos` directory of your project
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>web</summary>
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
</details>
|
||||||
|
@ -5,7 +5,6 @@ import React, {
|
|||||||
useImperativeHandle,
|
useImperativeHandle,
|
||||||
useRef,
|
useRef,
|
||||||
type RefObject,
|
type RefObject,
|
||||||
useMemo,
|
|
||||||
} from 'react';
|
} from 'react';
|
||||||
import type {VideoRef, ReactVideoProps, VideoMetadata} from './types';
|
import type {VideoRef, ReactVideoProps, VideoMetadata} from './types';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user