Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 4 | * You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | * |
michael@0 | 6 | * The origin of this IDL file is |
michael@0 | 7 | * http://www.whatwg.org/specs/web-apps/current-work/#the-video-element |
michael@0 | 8 | * |
michael@0 | 9 | * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and |
michael@0 | 10 | * Opera Software ASA. You are granted a license to use, reproduce |
michael@0 | 11 | * and create derivative works of this document. |
michael@0 | 12 | */ |
michael@0 | 13 | |
michael@0 | 14 | interface HTMLVideoElement : HTMLMediaElement { |
michael@0 | 15 | [SetterThrows] |
michael@0 | 16 | attribute unsigned long width; |
michael@0 | 17 | [SetterThrows] |
michael@0 | 18 | attribute unsigned long height; |
michael@0 | 19 | readonly attribute unsigned long videoWidth; |
michael@0 | 20 | readonly attribute unsigned long videoHeight; |
michael@0 | 21 | [SetterThrows] |
michael@0 | 22 | attribute DOMString poster; |
michael@0 | 23 | }; |
michael@0 | 24 | |
michael@0 | 25 | partial interface HTMLVideoElement { |
michael@0 | 26 | // A count of the number of video frames that have demuxed from the media |
michael@0 | 27 | // resource. If we were playing perfectly, we'd be able to paint this many |
michael@0 | 28 | // frames. |
michael@0 | 29 | readonly attribute unsigned long mozParsedFrames; |
michael@0 | 30 | |
michael@0 | 31 | // A count of the number of frames that have been decoded. We may drop |
michael@0 | 32 | // frames if the decode is taking too much time. |
michael@0 | 33 | readonly attribute unsigned long mozDecodedFrames; |
michael@0 | 34 | |
michael@0 | 35 | // A count of the number of frames that have been presented to the rendering |
michael@0 | 36 | // pipeline. We may drop frames if they arrive late at the renderer. |
michael@0 | 37 | readonly attribute unsigned long mozPresentedFrames; |
michael@0 | 38 | |
michael@0 | 39 | // Number of presented frames which were painted on screen. |
michael@0 | 40 | readonly attribute unsigned long mozPaintedFrames; |
michael@0 | 41 | |
michael@0 | 42 | // Time which the last painted video frame was late by, in seconds. |
michael@0 | 43 | readonly attribute double mozFrameDelay; |
michael@0 | 44 | |
michael@0 | 45 | // True if the video has an audio track available. |
michael@0 | 46 | readonly attribute boolean mozHasAudio; |
michael@0 | 47 | }; |
michael@0 | 48 | |
michael@0 | 49 | // https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html#idl-def-HTMLVideoElement |
michael@0 | 50 | partial interface HTMLVideoElement { |
michael@0 | 51 | [Pref="media.mediasource.enabled", NewObject] |
michael@0 | 52 | VideoPlaybackQuality getVideoPlaybackQuality(); |
michael@0 | 53 | }; |