HTML | DOM Video controller Property

The controller property returns the present media controller of the video. By default, the video element doesn’t have a media controller. The media controller property will return a MediaController object.



Return Value

  • MediaController: It Represent the media controller of video
    Object: MediaController Object properties/methods:

    • buffered – get the buffered ranges of the video
    • seekable – get the seekable ranges of the video
    • duration – get the duration of the video
    • currentTime – get or set the playback position of the video
    • paused – check if the video is paused
    • play() – play the video
    • pause() – pause the video
    • played – check if the video been played
    • defaultPlaybackRate – get or set the default playback rate of the video
    • playbackRate – get or set the present playback rate of the video
    • volume – get or set the volume of the video
    • muted – get or set if the video is muted






<!DOCTYPE html>
    <video id="Test_Video" width="360" height="240" controls>
        <source id="mp4_source" src="sample2.mp4" type="video/mp4">
        <source id="ogg_source" src="sample2.ogg" type="video/ogg">
    <button onclick="myVideo()" type="button">Click It</button>
        var v = document.getElementById("Test_Video");
        function myVideo() {
            alert("Controller: " + v.controller);



Supported Browsers: The browsers supported by HTML Video controller Property are listed below:

  • Google Chrome Not Supported
  • Internet Explorer Not Supported
  • Firefox Not Supported
  • Apple Safari Not Supported
  • Opera Not Supported


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :
Practice Tags :

Be the First to upvote.

Please write to us at to report any issue with the above content.