accessibilityMaximizeLabel
| | |
| Accessibility label for the fullscreen maximize button if controls are shown. See controls example for more details.
| |
accessibilityMinimizeLabel
| | |
| Accessibility label for the fullscreen minimize button if controls are shown. See controls example for more details.
| |
| | |
| Accessibility label for the mute button if controls are shown. See controls example for more details.
| |
| | |
| Accessibility label for the pause button if controls are shown. See controls example for more details.
| |
| | |
| Accessibility label for the play button if controls are shown. See controls example for more details.
| |
accessibilityProgressBarLabel
| | |
| | |
| | |
| Accessibility label for the unmute button if controls are shown. See controls example for more details.
| |
| | |
| Proportional relationship between width and height of the video, calculated as width / height.
| |
| | |
| The URL of the captions track for the video (.vtt file).
| |
| string
| $ReadOnlyArray<{|
type: "video/m3u8" | "video/mp4" | "video/ogg",
src: string,
|}>
| |
| The URL of the video file to play. This can also be supplied as a list of video types to respective video source urls in fallback order for support on various browsers. See multiple sources example for more details.
| |
accessibilityHideCaptionsLabel
| | |
| Accessibility label for the button to hide captions if controls are shown. See controls example for more details.
| |
accessibilityShowCaptionsLabel
| | |
| Accessibility label for the button to show captions if controls are shown. See controls example for more details.
| |
| | |
| Background color used to fill the video's placeholder.
| |
| | |
| This `children` prop is not same as children inside the native html `video` element. Instead it serves to add overlays on top of the html video element, while still being under the video controls. See children example for more details.
| |
| | |
| | |
| "anonymous" | "use-credentials"
| |
| Designate CORS behavior for the video element. When not passed in, CORS checks are disabled.
| |
| | |
| | |
| | |
| Indicates if the video will start playing over again when finished.
| |
| "fill" | "contain" | "cover" | "none" | "scale-down"
| |
| Sets how the content of the replaced <video> element should be resized to fit its container.
| |
| ({|
event: SyntheticEvent<HTMLVideoElement>,
duration: number,
|}) => void
| |
| Callback triggered when the metadata has loaded or changed, indicating a change in duration. See updates example for more details.
| |
| ({| event: SyntheticEvent<HTMLVideoElement> |}) => void
| |
| Callback triggered when playback of the video completes. See updates example for more details.
| |
| ({| event: SyntheticEvent<HTMLVideoElement> |}) => void
| |
| Callback triggered when an error occurs. See updates example for more details.
| |
| ({| event: Event, fullscreen: boolean |}) => void
| |
| Callback triggered when the video full screen status changes. See updates example for more details.
| |
| ({| event: SyntheticEvent<HTMLVideoElement>, loaded: number |}) => void
| |
| Callback triggered when progress happens on downloading the media. See updates example for more details.
| |
| ({| event: SyntheticEvent<HTMLVideoElement> |}) => void
| |
| Callback triggered when the media has started to load. See updates example for more details.
| |
| ({|
event: SyntheticEvent<HTMLDivElement> | SyntheticEvent<HTMLAnchorElement>,
|}) => void
| |
| Callback triggered when playback is paused. See updates example for more details.
| |
| ({|
event: SyntheticEvent<HTMLDivElement> | SyntheticEvent<HTMLAnchorElement>,
|}) => void
| |
| Callback triggered when playback of the media starts after having been paused. See updates example for more details.
| |
| ({| event: SyntheticMouseEvent<HTMLDivElement> |}) => void
| |
| Callback triggered when mouse down event occurs on playhead. See updates example for more details.
| |
| ({| event: SyntheticMouseEvent<HTMLDivElement> |}) => void
| |
| Callback triggered when mouse up event occurs on playhead. See updates example for more details.
| |
| ({| event: SyntheticEvent<HTMLVideoElement> |}) => void
| |
| Callback triggered when playback of the media is ready to start after having been paused. See updates example for more details.
| |
| ({| event: SyntheticEvent<HTMLVideoElement> |}) => void
| |
| Callback triggered when video is loaded and ready to play. See updates example for more details.
| |
| ({| event: SyntheticEvent<HTMLVideoElement> |}) => void
| |
| Callback triggered when a seek operation completes from the playhead. See updates example for more details.
| |
| ({| event: SyntheticEvent<HTMLVideoElement> |}) => void
| |
| Callback triggered when a seek operation begins. See updates example for more details.
| |
| ({| event: SyntheticEvent<HTMLVideoElement> |}) => void
| |
| Callback triggered when trying to fetch data but the data is unexpectedly not forthcoming. See updates example for more details.
| |
| ({| event: SyntheticEvent<HTMLVideoElement>, time: number |}) => void
| |
| Callback triggered when the time indicated by the element's currentTime attribute has changed. See updates example for more details.
| |
| ({|
event: SyntheticEvent<HTMLDivElement> | SyntheticEvent<HTMLAnchorElement>,
volume: number,
|}) => void
| |
| Callback triggered when the audio volume changes. See updates example for more details.
| |
| ({| event: SyntheticEvent<HTMLVideoElement> |}) => void
| |
| Callback triggered when playback has stopped because of a temporary lack of data. See updates example for more details.
| |
| | |
| Specifies the speed at which the video plays: 1 for normal. See updates example for more details.
| |
| | |
| Specifies whether the video should play or not.
| |
| | |
| Serves as a hint to the user agent that the video should to be displayed "inline" in the document by default, constrained to the element's playback area, instead of being displayed fullscreen or in an independent resizable window. This attribute is mainly relevant to iOS Safari browsers.
| |
| | |
| The image to show while the video is loading.
| |
| "auto" | "metadata" | "none"
| |
| Specifies how, if at all, the video should be pre-loaded when the page loads.
| |
| | |
| Specifies the volume of the video audio: 0 for muted, 1 for max. See example for more details.
| |