A class representing the HTML video
element that plays a video in a webpage. Use the HTMLAudio
class for the HTML audio
element.
SDKs
- Safari Desktop 10.0+
- Safari Mobile 3.0+
Framework
- Web
Kit JS
Declaration
interface HTMLVideoElement
A class representing the HTML video
element that plays a video in a webpage. Use the HTMLAudio
class for the HTML audio
element.
SDKs
Framework
interface HTMLVideoElement
video Width
The native width of the video in CSS pixels. (read-only)
video Height
The native height of the video in CSS pixels. (read-only)
webkit Displaying Fullscreen
A Boolean value indicating whether the video is displaying in fullscreen mode.
webkit Enter Fullscreen
Enters fullscreen mode.
webkit Exit Fullscreen
Exits fullscreen mode.
webkit Supports Fullscreen
A Boolean value indicating whether the video can be played in fullscreen mode.
webkit Wireless Video Playback Disabled
A Boolean value indicating whether wireless video playback is disabled.
webkit Set Presentation Mode
Sets the presentation mode for video playback.
webkit Supports Presentation Mode
A Boolean value indicating whether the video can be played in presentation mode.
webkit Presentation Mode
A property indicating the presentation mode.
plays Inline
A Boolean value indicating whether the video plays inline.