HTML Audio/Video DOM controller Property

## HTML Reference

HTML by Alphabet HTML by Function HTML Global Attributes HTML Events HTML Canvas HTML Audio/Video HTML Doctypes HTML Colornames HTML Colorpicker HTML Colormixer HTML Character Sets HTML ASCII HTML ISO-8859-1 HTML Symbols HTML URL Encode HTML Lang Codes HTTP Messages HTTP Methods Keyboard Shortcuts

## HTML Tags

<!--> <!DOCTYPE> <a> <abbr> <acronym> <address> <applet> <area> <article> <aside> <audio> <b> <base> <basefont> <bdi> <bdo> <big> <blockquote> <body> <br> <button> <canvas> <caption> <center> <cite> <code> <col> <colgroup> <command> <datalist> <dd> <del> <details> <dfn> <dialog> <dir> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> <figure> <font> <footer> <form> <frame> <frameset> <head> <header> <h1> - <h6> <hr> <html> <i> <iframe> <img> <input> <ins> <kbd> <keygen> <label> <legend> <li> <link> <map> <mark> <menu> <meta> <meter> <nav> <noframes> <noscript> <object> <ol> <optgroup> <option> <output> <p> <param> <pre> <progress> <q> <rp> <rt> <ruby> <s> <samp> <script> <section> <select> <small> <source> <span> <strike> <strong> <style> <sub> <summary> <sup> <table> <tbody> <td> <textarea> <tfoot> <th> <thead> <time> <title> <tr> <track> <tt> <u> <ul> <var> <video> <wbr>

# HTML Audio/Video DOM controller Property

HTML Audio/Video DOM Reference

## Example

Check if the video has a media controller:

myVid=document.getElementById("video1");
alert("Controller: " + myVid.controller);
Try it yourself »

## Definition and Usage

The controller property returns the current media controller of the audio/video.

By default the audio/video element does not have a media controller. If a media controller is specified, the controller property will return it as a MediaController object.

## Browser Support

The controller property is not supported in any major browser.

## Syntax

audio|video.controller

## Return Value

Type | Description
--- | ---

MediaController Object

Represents the media controller of the audio/video.

MediaController Object properties/methods:

- buffered - get the buffered ranges of the audio/video
- seekable - get the seekable ranges of the audio/video
- duration - get the duration of the audio/video
- currentTime - get or set the current playback position of the audio/video
- paused - check if the audio/video is paused
- play() - play the audio/video
- pause() - pause the audio/video
- played - check if the audio/video has been played
- defaultPlaybackRate - get or set the default playback rate of the audio/video
- playbackRate - get or set the current playback rate of the audio/video
- volume - get or set the volume of the audio/video
- muted - get or set if the audio/video is muted

HTML Audio/Video DOM Reference

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE