Web::DOM::HTMLMediaElement
The DOM HTMLMediaElement object
DESCRIPTION
The Web::DOM::HTMLMediaElement class implements the DOM HTMLMediaElement interface.
The class is used by the HTML video and audio elements.
METHODS
In addition to the methods available for classes Web::DOM::Element and Web::DOM::HTMLElement, the following methods are available:
$boolean = $el->autoplay$el->autoplay ($boolean)-
Return or set whether the
autoplayattribute is specified or not. [HTML] $boolean = $el->controls$el->controls ($boolean)-
Return or set whether the
controlsattribute is specified or not. [HTML] $string = $el->crossorigin$el->crossorigin ($string)-
Return or set the
crossoriginattribute. [HTML] $boolean = $el->default_muted$el->default_muted ($boolean)-
Return or set whether the
mutedattribute is specified or not. [HTML] $boolean = $el->loop$el->loop ($boolean)-
Return or set whether the
loopattribute is specified or not. [HTML] $string = $el->src$el->src ($string)-
Return or set the
srcattribute. [HTML]
The video element also implements the Web::DOM::HTMLVideoElement interface.
The audio element also implements the Web::DOM::HTMLAudioElement interface.
SPECIFICATION
- HTML
-
HTML Standard
<http://www.whatwg.org/specs/web-apps/current-work/#media-elements>.
SEE ALSO
Web::DOM::HTMLElement, Web::DOM::HTMLVideoElement, and Web::DOM::HTMLAudioElement.
AUTHOR
Wakaba <wakaba@suikawiki.org>.
LICENSE
Copyright 2013 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.