Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * The HTMLMediaElement interface adds to HTMLElement the properties and methods needed to support
- * basic media-related capabilities that are common to audio and video.
- * The HTMLVideoElement and HTMLAudioElement elements both inherit this interface.
- */
- interface HTMLMediaElement extends HTMLElement {
- /**
- * Loads the data of audio Object
- */
- load():undefined;
- /**
- * Begins playback of the media.
- */
- play():undefined;
- /**
- * Pauses the media playback.
- */
- pause:undefined;
- /**
- * The new TextTrack object is added to the list of text tracks for the audio/video element.
- * @param {string} kind
- * @param {string} label
- * @param {string} language
- */
- addTextTrack(kind:string, label?:string, language?:string): TextTrack;
- /**
- * Returns a string that specifies whether the client can play a given media resource type.
- * @param type
- */
- canPlayType(type:string): string;
- /**
- * Sets the MediaKeys keys to use when decrypting media during playback.
- * @param mediaKeys
- */
- setMediaKeys(mediaKeys:MediaKeys): Promise;
- /**
- * Directly seeks to the given time.
- */
- fastSeek():void;
- /**
- * TODO: No description provided
- *
- * @deprecated
- */
- webkitGenerateKeyRequest():Function;
- /**
- * TODO: No description provided
- *
- * @deprecated
- */
- webkitAddKey():Function;
- /**
- * TODO: No description provided
- *
- * @deprecated
- */
- webkitCancelKeyRequest():Function;
- /**
- * TODO: No description provided
- *
- * @deprecated
- */
- mozCaptureStream():undefined;
- /**
- * TODO: No description provided
- *
- * @deprecated
- */
- mozCaptureStreamUntilEnded():undefined;
- /**
- * Returns Object, which contains properties that represent metadata from the playing media resource
- * as {key: value} pairs. A separate copy of the data is returned
- * each time the method is called. This method must be called after the loadedmetadata event fires.
- *
- * @deprecated
- */
- mozGetMetadata():Object;
- /**
- * This method, available only in Mozilla's implementation, loads data from another media element.
- * This works similarly to load() except that instead of running the normal resource selection algorithm,
- * the source is simply set to the other element's currentSrc. This is optimized so this element gets
- * access to all of the other element's cached and buffered data; in fact, the two elements share
- * downloaded data, so data downloaded by either element is available to both.
- *
- * @deprecated
- */
- mozLoadFrom():Function;
- }
- declare var HTMLMediaElement:{
- /**
- * Returns a MediaError object for the most recent error, or null if there has not been an error.
- */
- error?:MediaError;
- /**
- * A DOMString that reflects the src HTML attribute, which contains the URL of a media resource to use.
- */
- src:string;
- /**
- * Returns a DOMString with the absolute URL of the chosen media resource.
- * @readonly
- */
- currentSrc:string;
- /**
- * A DOMString indicating the CORS setting for this media element.
- */
- crossOrigin?:string;
- /**
- * Returns an unsigned short (enumeration) indicating the current state of fetching the media over the network.
- * @readonly
- */
- networkState:number; // 0|1|2|3
- NETWORK_EMPTY:number; // 0
- NETWORK_IDLE:number; // 1
- NETWORK_LOADING:number; // 2
- NETWORK_NO_SOURCE:number; // 3
- БЛЯТЬ КАК!!!!????
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement