Initializer
Media(String? src, Boolean? autoPlay = null, Boolean? controls = null, Boolean? loop = null, Boolean? muted = null, MediaPreload? preload = null, String? id = null, CssClass classNames = [], String? style = null, String? accessKey = null, String? contextMenu = null, TextDirection? dir = null, Boolean? draggable = null, DropZone? dropZone = null, Boolean? inert = null, Boolean? hidden = null, String? lang = null, Boolean? spellcheck = null, Integer? tabIndex = null, String? title = null, Boolean? translate = null, Aria? aria = null, NonstandardAttributes nonstandardAttributes = ..., DataContainer data = ..., {<Source|{Source*}|Snippet<Source>|Null>*} children = ...)
Parameters:
  • src

    Specifies the URL of the media file. For multiple source/formats use Source as children elements.

  • autoPlay = null

    Specifies that the media will start playing as soon as it is ready.

  • controls = null

    Specifies that media controls should be displayed (such as a play/pause button etc).

  • loop = null

    Specifies that the media will start over again, every time it is finished.

  • muted = null

    Specifies that the audio output should be muted.

  • preload = null

    Specifies if and how the author thinks the media should be loaded when the page loads.

  • id = null
  • classNames = []
  • style = null
  • accessKey = null
  • contextMenu = null
  • dir = null
  • draggable = null
  • dropZone = null
  • inert = null
  • hidden = null
  • lang = null
  • spellcheck = null
  • tabIndex = null
  • title = null
  • translate = null
  • aria = null
  • nonstandardAttributes = empty
  • data = empty
  • children = {}
Attributes
attributesSource Codeshared actual default <String->Object>[] attributes
Refines BaseElement.attributes ultimately refines Node.attributes
autoPlaySource Codeshared Boolean? autoPlay

Specifies that the media will start playing as soon as it is ready.

See also preload
childrenSource Codeshared actual {<Source|{Source*}|Snippet<Source>|Null>*} children
controlsSource Codeshared Boolean? controls

Specifies that media controls should be displayed (such as a play/pause button etc).

loopSource Codeshared Boolean? loop

Specifies that the media will start over again, every time it is finished.

mutedSource Codeshared Boolean? muted

Specifies that the audio output should be muted.

preloadSource Codeshared MediaPreload? preload

Specifies if and how the author thinks the media should be loaded when the page loads.

srcSource Codeshared String? src

Specifies the URL of the media file. For multiple source/formats use Source as children elements.

See also children, Source
Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: Node
Attributes inherited from: ParentNode<Child>
Inherited Methods
Methods inherited from: Object