webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | List of all members
HTMLMediaElement Interface Reference

import"EncryptedMediaExtensions.idl";

Inheritance diagram for HTMLMediaElement:
HTMLElement HTMLAudioElement HTMLVideoElement

Public Member Functions

Promise< voidsetMediaKeys (MediaKeys? mediaKeys)
 
void load ()
 
DOMString canPlayType (DOMString type)
 
Date getStartDate ()
 
Promise< voidplay ()
 
void pause ()
 
void fastSeek (unrestricted double time)
 
void webkitSetMediaKeys (WebKitMediaKeys? mediaKeys)
 
Promise< voidsetMediaKeys (MediaKeys? mediaKeys)
 
TextTrack addTextTrack (DOMString kind, optional DOMString label="", optional DOMString language="")
 
VideoPlaybackQuality getVideoPlaybackQuality ()
 
void webkitShowPlaybackTargetPicker ()
 
- Public Member Functions inherited from HTMLElement
void click ()
 
void focus ()
 
void blur ()
 

Public Attributes

readonly attribute MediaKeys mediaKeys
 
attribute EventHandler onencrypted
 
attribute EventHandler onwaitingforkey
 
readonly attribute MediaError error
 
attribute USVString src
 
attribute MediaProvider srcObject
 
readonly attribute USVString currentSrc
 
attribute DOMString crossOrigin
 
const unsigned short NETWORK_EMPTY = 0
 
const unsigned short NETWORK_IDLE = 1
 
const unsigned short NETWORK_LOADING = 2
 
const unsigned short NETWORK_NO_SOURCE = 3
 
readonly attribute unsigned short networkState
 
attribute DOMString preload
 
readonly attribute TimeRanges buffered
 
const unsigned short HAVE_NOTHING = 0
 
const unsigned short HAVE_METADATA = 1
 
const unsigned short HAVE_CURRENT_DATA = 2
 
const unsigned short HAVE_FUTURE_DATA = 3
 
const unsigned short HAVE_ENOUGH_DATA = 4
 
readonly attribute unsigned short readyState
 
readonly attribute boolean seeking
 
attribute unrestricted double currentTime
 
readonly attribute unrestricted double duration
 
readonly attribute boolean paused
 
attribute unrestricted double defaultPlaybackRate
 
attribute unrestricted double playbackRate
 
readonly attribute TimeRanges played
 
readonly attribute TimeRanges seekable
 
readonly attribute boolean ended
 
attribute boolean autoplay
 
attribute boolean loop
 
attribute boolean controls
 
attribute double volume
 
attribute boolean muted
 
attribute boolean defaultMuted
 
attribute boolean webkitPreservesPitch
 
readonly attribute boolean webkitHasClosedCaptions
 
attribute boolean webkitClosedCaptionsVisible
 
readonly attribute unsigned long webkitAudioDecodedByteCount
 
readonly attribute unsigned long webkitVideoDecodedByteCount
 
readonly attribute WebKitMediaKeys webkitKeys
 
readonly attribute AudioTrackList audioTracks
 
readonly attribute TextTrackList textTracks
 
readonly attribute VideoTrackList videoTracks
 
attribute DOMString mediaGroup
 
attribute MediaController controller
 
readonly attribute boolean webkitCurrentPlaybackTargetIsWireless
 
attribute DOMString kind
 
attribute MediaSession session
 
- Public Attributes inherited from HTMLElement
attribute DOMString title
 
attribute DOMString lang
 
attribute boolean translate
 
attribute DOMString dir
 
attribute long tabIndex
 
attribute boolean draggable
 
attribute DOMString webkitdropzone
 
attribute boolean hidden
 
attribute DOMString accessKey
 
attribute DOMString innerText
 
attribute DOMString outerText
 
attribute DOMString contentEditable
 
readonly attribute boolean isContentEditable
 
attribute boolean spellcheck
 
attribute boolean autocorrect
 
attribute DOMString autocapitalize
 
readonly attribute DOMStringMap dataset
 

Member Function Documentation

◆ addTextTrack()

TextTrack HTMLMediaElement::addTextTrack ( DOMString  kind,
optional DOMString  label = "",
optional DOMString  language = "" 
)

◆ canPlayType()

DOMString HTMLMediaElement::canPlayType ( DOMString  type)

◆ fastSeek()

void HTMLMediaElement::fastSeek ( unrestricted double  time)

◆ getStartDate()

Date HTMLMediaElement::getStartDate ( )

◆ getVideoPlaybackQuality()

VideoPlaybackQuality HTMLMediaElement::getVideoPlaybackQuality ( )

◆ load()

void HTMLMediaElement::load ( )

◆ pause()

void HTMLMediaElement::pause ( )

◆ play()

Promise<void> HTMLMediaElement::play ( )

◆ setMediaKeys() [1/2]

Promise<void> HTMLMediaElement::setMediaKeys ( MediaKeys mediaKeys)

◆ setMediaKeys() [2/2]

Promise<void> HTMLMediaElement::setMediaKeys ( MediaKeys mediaKeys)

◆ webkitSetMediaKeys()

void HTMLMediaElement::webkitSetMediaKeys ( WebKitMediaKeys mediaKeys)

◆ webkitShowPlaybackTargetPicker()

void HTMLMediaElement::webkitShowPlaybackTargetPicker ( )

Member Data Documentation

◆ audioTracks

readonly attribute AudioTrackList HTMLMediaElement::audioTracks

◆ autoplay

attribute boolean HTMLMediaElement::autoplay

◆ buffered

readonly attribute TimeRanges HTMLMediaElement::buffered

◆ controller

attribute MediaController HTMLMediaElement::controller

◆ controls

attribute boolean HTMLMediaElement::controls

◆ crossOrigin

attribute DOMString HTMLMediaElement::crossOrigin

◆ currentSrc

readonly attribute USVString HTMLMediaElement::currentSrc

◆ currentTime

attribute unrestricted double HTMLMediaElement::currentTime

◆ defaultMuted

attribute boolean HTMLMediaElement::defaultMuted

◆ defaultPlaybackRate

attribute unrestricted double HTMLMediaElement::defaultPlaybackRate

◆ duration

readonly attribute unrestricted double HTMLMediaElement::duration

◆ ended

readonly attribute boolean HTMLMediaElement::ended

◆ error

readonly attribute MediaError HTMLMediaElement::error

◆ HAVE_CURRENT_DATA

const unsigned short HTMLMediaElement::HAVE_CURRENT_DATA = 2

◆ HAVE_ENOUGH_DATA

const unsigned short HTMLMediaElement::HAVE_ENOUGH_DATA = 4

◆ HAVE_FUTURE_DATA

const unsigned short HTMLMediaElement::HAVE_FUTURE_DATA = 3

◆ HAVE_METADATA

const unsigned short HTMLMediaElement::HAVE_METADATA = 1

◆ HAVE_NOTHING

const unsigned short HTMLMediaElement::HAVE_NOTHING = 0

◆ kind

attribute DOMString HTMLMediaElement::kind

◆ loop

attribute boolean HTMLMediaElement::loop

◆ mediaGroup

attribute DOMString HTMLMediaElement::mediaGroup

◆ mediaKeys

readonly attribute MediaKeys HTMLMediaElement::mediaKeys

◆ muted

attribute boolean HTMLMediaElement::muted

◆ NETWORK_EMPTY

const unsigned short HTMLMediaElement::NETWORK_EMPTY = 0

◆ NETWORK_IDLE

const unsigned short HTMLMediaElement::NETWORK_IDLE = 1

◆ NETWORK_LOADING

const unsigned short HTMLMediaElement::NETWORK_LOADING = 2

◆ NETWORK_NO_SOURCE

const unsigned short HTMLMediaElement::NETWORK_NO_SOURCE = 3

◆ networkState

readonly attribute unsigned short HTMLMediaElement::networkState

◆ onencrypted

attribute EventHandler HTMLMediaElement::onencrypted

◆ onwaitingforkey

attribute EventHandler HTMLMediaElement::onwaitingforkey

◆ paused

readonly attribute boolean HTMLMediaElement::paused

◆ playbackRate

attribute unrestricted double HTMLMediaElement::playbackRate

◆ played

readonly attribute TimeRanges HTMLMediaElement::played

◆ preload

attribute DOMString HTMLMediaElement::preload

◆ readyState

readonly attribute unsigned short HTMLMediaElement::readyState

◆ seekable

readonly attribute TimeRanges HTMLMediaElement::seekable

◆ seeking

readonly attribute boolean HTMLMediaElement::seeking

◆ session

attribute MediaSession HTMLMediaElement::session

◆ src

attribute USVString HTMLMediaElement::src

◆ srcObject

attribute MediaProvider HTMLMediaElement::srcObject

◆ textTracks

readonly attribute TextTrackList HTMLMediaElement::textTracks

◆ videoTracks

readonly attribute VideoTrackList HTMLMediaElement::videoTracks

◆ volume

attribute double HTMLMediaElement::volume

◆ webkitAudioDecodedByteCount

readonly attribute unsigned long HTMLMediaElement::webkitAudioDecodedByteCount

◆ webkitClosedCaptionsVisible

attribute boolean HTMLMediaElement::webkitClosedCaptionsVisible

◆ webkitCurrentPlaybackTargetIsWireless

readonly attribute boolean HTMLMediaElement::webkitCurrentPlaybackTargetIsWireless

◆ webkitHasClosedCaptions

readonly attribute boolean HTMLMediaElement::webkitHasClosedCaptions

◆ webkitKeys

readonly attribute WebKitMediaKeys HTMLMediaElement::webkitKeys

◆ webkitPreservesPitch

attribute boolean HTMLMediaElement::webkitPreservesPitch

◆ webkitVideoDecodedByteCount

readonly attribute unsigned long HTMLMediaElement::webkitVideoDecodedByteCount

The documentation for this interface was generated from the following files: