Latest web development tutorials

HTML DOM Video controller properties

Video Object Reference Video Object

Examples

Detecting whether the video media controller:

var x = document.getElementById ( "myVideo") controller.;

try it"

Definition and Usage

controller property returns the current audio and video media controller.

By default, audio and video elements do not have the media control. If you specify a media controller, controller properties will MediaController and returns it.

Tip: Use the controls property to set or return whether the video display standard video controls.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Any major browsers do not support controller attributes.


grammar

videoObject .controller

return value

value description
MediaController objects

It indicates audio and video media controller.

MediaController object properties / methods:

  • buffered - get audio and video buffering range
  • seekable - or addressable range of audio and video
  • duration - a long time to get audio and video
  • Get or set the current playback position of audio and video - currentTime
  • paused - detection of audio and video has been paused
  • play () - play audio and video
  • pause () - pause audio and video
  • played - detecting whether the audio and video has been played
  • The default playback rate to get or set the audio and video - defaultPlaybackRate
  • playbackRate - get or set the current playback speed of audio and video
  • volume - Gets or sets the volume of the audio and video
  • muted - whether to get or set the video and audio is muted


Video Object Reference Video Object