The manakai project

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 autoplay attribute is specified or not. [HTML]

$boolean = $el->controls
$el->controls ($boolean)

Return or set whether the controls attribute is specified or not. [HTML]

$string = $el->crossorigin
$el->crossorigin ($string)

Return or set the crossorigin attribute. [HTML]

$boolean = $el->default_muted
$el->default_muted ($boolean)

Return or set whether the muted attribute is specified or not. [HTML]

$boolean = $el->loop
$el->loop ($boolean)

Return or set whether the loop attribute is specified or not. [HTML]

$string = $el->src
$el->src ($string)

Return or set the src attribute. [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.