Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* vim:set ts=2 sw=2 sts=2 et cindent: */ |
michael@0 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #include "nsIDOMHTMLMediaElement.idl" |
michael@0 | 8 | |
michael@0 | 9 | /** |
michael@0 | 10 | * The nsIDOMHTMLVideoElement interface is the interface to a HTML |
michael@0 | 11 | * <video> element. |
michael@0 | 12 | * |
michael@0 | 13 | * For more information on this interface, please see |
michael@0 | 14 | * http://www.whatwg.org/specs/web-apps/current-work/#video |
michael@0 | 15 | * |
michael@0 | 16 | * @status UNDER_DEVELOPMENT |
michael@0 | 17 | */ |
michael@0 | 18 | |
michael@0 | 19 | [scriptable, uuid(185a3e8f-56a7-4bda-8dc7-2cff6ed07d1d)] |
michael@0 | 20 | interface nsIDOMHTMLVideoElement : nsIDOMHTMLMediaElement |
michael@0 | 21 | { |
michael@0 | 22 | attribute long width; |
michael@0 | 23 | attribute long height; |
michael@0 | 24 | readonly attribute unsigned long videoWidth; |
michael@0 | 25 | readonly attribute unsigned long videoHeight; |
michael@0 | 26 | attribute DOMString poster; |
michael@0 | 27 | |
michael@0 | 28 | // A count of the number of video frames that have demuxed from the media |
michael@0 | 29 | // resource. If we were playing perfectly, we'd be able to paint this many |
michael@0 | 30 | // frames. |
michael@0 | 31 | readonly attribute unsigned long mozParsedFrames; |
michael@0 | 32 | |
michael@0 | 33 | // A count of the number of frames that have been decoded. We may drop |
michael@0 | 34 | // frames if the decode is taking too much time. |
michael@0 | 35 | readonly attribute unsigned long mozDecodedFrames; |
michael@0 | 36 | |
michael@0 | 37 | // A count of the number of frames that have been presented to the rendering |
michael@0 | 38 | // pipeline. We may drop frames if they arrive late at the renderer. |
michael@0 | 39 | readonly attribute unsigned long mozPresentedFrames; |
michael@0 | 40 | |
michael@0 | 41 | // Number of presented frames which were painted on screen. |
michael@0 | 42 | readonly attribute unsigned long mozPaintedFrames; |
michael@0 | 43 | |
michael@0 | 44 | // Time which the last painted video frame was late by, in seconds. |
michael@0 | 45 | readonly attribute double mozFrameDelay; |
michael@0 | 46 | |
michael@0 | 47 | // True if the video has an audio track available. |
michael@0 | 48 | readonly attribute bool mozHasAudio; |
michael@0 | 49 | }; |
michael@0 | 50 |