Mac OS X Reference Library Apple Developer
Search

HTMLMediaElement

Module:
html
Inherits from:
Declared In:

Overview

Use the links in the table of contents to the left to access the documentation.



Functions

canPlayType
load
pause
play

canPlayType



DOMString canPlayType(
    in DOMString type); 

load



void load() raises (DOMException); 

pause



void pause(); 

play



void play(); 

Member Data

autoplay
buffered
controls
currentSrc
currentTime
defaultPlaybackRate
duration
ended
error
HAVE_CURRENT_DATA
HAVE_ENOUGH_DATA
HAVE_FUTURE_DATA
HAVE_METADATA
HAVE_NOTHING
loop
muted
NETWORK_EMPTY
NETWORK_IDLE
NETWORK_LOADED
NETWORK_LOADING
NETWORK_NO_SOURCE
networkState
paused
playbackRate
played
preload
readyState
seekable
seeking
src
startTime
volume
webkitClosedCaptionsVisible
webkitHasClosedCaptions
webkitPreservesPitch

autoplay



attribute boolean autoplay; 

buffered



readonly attribute TimeRanges buffered; 

controls



attribute boolean controls; 

currentSrc



readonly attribute DOMString currentSrc; 

currentTime



attribute float currentTime setter raises (DOMException); 

defaultPlaybackRate



attribute float defaultPlaybackRate; 

duration



readonly attribute float duration; 

ended



readonly attribute boolean ended; 

error



readonly attribute MediaError error; 

HAVE_CURRENT_DATA



const unsigned short HAVE_CURRENT_DATA = 2; 

HAVE_ENOUGH_DATA



const unsigned short HAVE_ENOUGH_DATA = 4; 

HAVE_FUTURE_DATA



const unsigned short HAVE_FUTURE_DATA = 3; 

HAVE_METADATA



const unsigned short HAVE_METADATA = 1; 

HAVE_NOTHING



const unsigned short HAVE_NOTHING = 0; 

loop



attribute boolean loop; 

muted



attribute boolean muted; 

NETWORK_EMPTY



const unsigned short NETWORK_EMPTY = 0; 

NETWORK_IDLE



const unsigned short NETWORK_IDLE = 1; 

NETWORK_LOADED



const unsigned short NETWORK_LOADED = 3; 

NETWORK_LOADING



const unsigned short NETWORK_LOADING = 2; 

NETWORK_NO_SOURCE



const unsigned short NETWORK_NO_SOURCE = 4; 

networkState



readonly attribute unsigned short networkState; 

paused



readonly attribute boolean paused; 

playbackRate



attribute float playbackRate; 

played



readonly attribute TimeRanges played; 

preload



attribute DOMString preload; 

readyState



readonly attribute unsigned short readyState; 

seekable



readonly attribute TimeRanges seekable; 

seeking



readonly attribute boolean seeking; 

src



attribute DOMString src; 

startTime



readonly attribute float startTime; 

volume



attribute float volume setter raises (DOMException); 

webkitClosedCaptionsVisible



attribute boolean webkitClosedCaptionsVisible; 

webkitHasClosedCaptions



readonly attribute boolean webkitHasClosedCaptions; 

webkitPreservesPitch



attribute boolean webkitPreservesPitch; 

 

Did this document help you? Yes It's good, but... Not helpful...

Last Updated: 2010-05-27