dom/interfaces/html/nsIDOMHTMLVideoElement.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial