YouTip LogoYouTip

Prop Audio Controller

# Audio controller Property [![Image 8: Audio Object Reference](#) Audio Object](#) ## Example Check if the audio has a media controller: var x = document.getElementById("myAudio").controller; [Try it Β»](#) * * * ## Definition and Usage The controller property returns the current media controller of the audio/video. By default, audio/video elements do not have a media controller. If a media controller is specified, the controller property returns it as a MediaController object. **Tip:** Use the (#) property to set or return whether the audio should display controls (like play/pause, etc.). * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) Currently, no major browser supports the controller property. * * * ## Syntax _audioObject_.controller ## Return Value | Value | Description | | --- | --- | | MediaController Object | Represents the media controller of the audio/video. MediaController Object Properties/Methods: * buffered - Get the buffered range of the audio/video * seekable - Get the seekable range 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 whether the audio/video is muted | * * Audio Object](#)
← Prop Audio ControlsProp Audio Buffered β†’