Expand all

MediaDialog

A media OOUI dialog to open and play a media element in.

A modal interaction, only one dialog should be opened at a time

Extends

Constructor

new MediaDialog(config) #

Parameters:

Name Type Description
config Object
Properties:
Name Type Description
$video jQuery

element to present

Source:

Methods

play() #

Initiate playback of the video element. Loads the JS playback interface and triggers play

Note: because of autoplay restrictions, this needs to triggered after a click, for audio to work.

Source:
Initiate playback of the video element.

stop() → {jQuery.Promise} #

Call this method to stop playback and to cleanup the player after closing the dialog

Source:

Returns:

Type
jQuery.Promise

Call this method to stop playback and to cleanup the player after closing the dialog