MediaDialog(config)

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

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

Show:

Constructor

new MediaDialog(config)

...
Parameters:
Name Type Description
config Object
Properties
Name Type Description
$video JQuery

element to present

Source:

Extends

Methods

play()

Initiate playback of the video element.

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:

stop()

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

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

Source: