VideoBox
Video box is an element for displaying videos in customizable video containers. Learn more.
Additional information about this section
Store values associated with an object
- currentTime
Gets the current play time from the beginning of the current video, in seconds.
- duration
Gets the total play time of the current video, in seconds.
- isMuted
Indicates if the volume is currently muted.
- isPlaying
Indicates if a video is currently playing.
- src
Sets or gets the file location of the current video.
- volume
Sets or gets the video box volume.
- customClassList
A property that represents an element's custom CSS classes.
- deleted
Indicates if an element was temporarily deleted from the DOM. Use the restore function to restore the deleted element.
- rendered
Indicates if an element is currently in the DOM structure.
- global
Indicates if an element appears on all pages or only on the current page.
- id
Gets the element's ID.
- parent
Gets the element's parent element.
- type
Gets the element's type.
- hidden
Indicates if the element is visible or hidden.
- isVisible
Indicates if the element is actually visible.
- collapsed
Indicates if the element is collapsed or expanded.
The endpoints exposed by this API
Mutes video box volume.
Adds an event handler that runs when the playback has ended.
Note: This standard element property is not relevant for VideoBox.
Note: This standard element property is not relevant for VideoBox.
Adds an event handler that runs when the playback is paused.
Adds an event handler that runs when the playback is started or restarted.
Adds an event handler that runs when the playback progresses.
Pauses playback.
Begins or resumes playback.
Stops the playback.
Toggles playback.
Unmutes video volume.
Deletes an element from the DOM. This is a temporary deletion. Use restore to restore the deleted element. SEO crawlers cannot find content in an element whose ...
Restores a deleted element to the DOM.
Scrolls the page to the top of the element using an animation.
Adds an event handler that runs when an element is displayed in the viewable part of the current window.
Adds an event handler that runs when an element is no longer displayed in the viewable part of the current window.
Hides the element and sets its hidden property to true, using an effect if specified.
Shows the element and sets its hidden property to false, using an effect if specified.
Collapses the element and sets its collapsed property to true.
Expands the element and sets its collapsed property to false.