1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/webidl/HTMLVideoElement.webidl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,53 @@ 1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.7 + * You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + * 1.9 + * The origin of this IDL file is 1.10 + * http://www.whatwg.org/specs/web-apps/current-work/#the-video-element 1.11 + * 1.12 + * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and 1.13 + * Opera Software ASA. You are granted a license to use, reproduce 1.14 + * and create derivative works of this document. 1.15 + */ 1.16 + 1.17 +interface HTMLVideoElement : HTMLMediaElement { 1.18 + [SetterThrows] 1.19 + attribute unsigned long width; 1.20 + [SetterThrows] 1.21 + attribute unsigned long height; 1.22 + readonly attribute unsigned long videoWidth; 1.23 + readonly attribute unsigned long videoHeight; 1.24 + [SetterThrows] 1.25 + attribute DOMString poster; 1.26 +}; 1.27 + 1.28 +partial interface HTMLVideoElement { 1.29 + // A count of the number of video frames that have demuxed from the media 1.30 + // resource. If we were playing perfectly, we'd be able to paint this many 1.31 + // frames. 1.32 + readonly attribute unsigned long mozParsedFrames; 1.33 + 1.34 + // A count of the number of frames that have been decoded. We may drop 1.35 + // frames if the decode is taking too much time. 1.36 + readonly attribute unsigned long mozDecodedFrames; 1.37 + 1.38 + // A count of the number of frames that have been presented to the rendering 1.39 + // pipeline. We may drop frames if they arrive late at the renderer. 1.40 + readonly attribute unsigned long mozPresentedFrames; 1.41 + 1.42 + // Number of presented frames which were painted on screen. 1.43 + readonly attribute unsigned long mozPaintedFrames; 1.44 + 1.45 + // Time which the last painted video frame was late by, in seconds. 1.46 + readonly attribute double mozFrameDelay; 1.47 + 1.48 + // True if the video has an audio track available. 1.49 + readonly attribute boolean mozHasAudio; 1.50 +}; 1.51 + 1.52 +// https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html#idl-def-HTMLVideoElement 1.53 +partial interface HTMLVideoElement { 1.54 + [Pref="media.mediasource.enabled", NewObject] 1.55 + VideoPlaybackQuality getVideoPlaybackQuality(); 1.56 +};