michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: * michael@0: * The origin of this IDL file is michael@0: * http://www.whatwg.org/specs/web-apps/current-work/#the-video-element michael@0: * michael@0: * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and michael@0: * Opera Software ASA. You are granted a license to use, reproduce michael@0: * and create derivative works of this document. michael@0: */ michael@0: michael@0: interface HTMLVideoElement : HTMLMediaElement { michael@0: [SetterThrows] michael@0: attribute unsigned long width; michael@0: [SetterThrows] michael@0: attribute unsigned long height; michael@0: readonly attribute unsigned long videoWidth; michael@0: readonly attribute unsigned long videoHeight; michael@0: [SetterThrows] michael@0: attribute DOMString poster; michael@0: }; michael@0: michael@0: partial interface HTMLVideoElement { michael@0: // A count of the number of video frames that have demuxed from the media michael@0: // resource. If we were playing perfectly, we'd be able to paint this many michael@0: // frames. michael@0: readonly attribute unsigned long mozParsedFrames; michael@0: michael@0: // A count of the number of frames that have been decoded. We may drop michael@0: // frames if the decode is taking too much time. michael@0: readonly attribute unsigned long mozDecodedFrames; michael@0: michael@0: // A count of the number of frames that have been presented to the rendering michael@0: // pipeline. We may drop frames if they arrive late at the renderer. michael@0: readonly attribute unsigned long mozPresentedFrames; michael@0: michael@0: // Number of presented frames which were painted on screen. michael@0: readonly attribute unsigned long mozPaintedFrames; michael@0: michael@0: // Time which the last painted video frame was late by, in seconds. michael@0: readonly attribute double mozFrameDelay; michael@0: michael@0: // True if the video has an audio track available. michael@0: readonly attribute boolean mozHasAudio; michael@0: }; michael@0: michael@0: // https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html#idl-def-HTMLVideoElement michael@0: partial interface HTMLVideoElement { michael@0: [Pref="media.mediasource.enabled", NewObject] michael@0: VideoPlaybackQuality getVideoPlaybackQuality(); michael@0: };