1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/interfaces/html/nsIDOMHTMLVideoElement.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,50 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* vim:set ts=2 sw=2 sts=2 et cindent: */ 1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#include "nsIDOMHTMLMediaElement.idl" 1.11 + 1.12 +/** 1.13 + * The nsIDOMHTMLVideoElement interface is the interface to a HTML 1.14 + * <video> element. 1.15 + * 1.16 + * For more information on this interface, please see 1.17 + * http://www.whatwg.org/specs/web-apps/current-work/#video 1.18 + * 1.19 + * @status UNDER_DEVELOPMENT 1.20 + */ 1.21 + 1.22 +[scriptable, uuid(185a3e8f-56a7-4bda-8dc7-2cff6ed07d1d)] 1.23 +interface nsIDOMHTMLVideoElement : nsIDOMHTMLMediaElement 1.24 +{ 1.25 + attribute long width; 1.26 + attribute long height; 1.27 + readonly attribute unsigned long videoWidth; 1.28 + readonly attribute unsigned long videoHeight; 1.29 + attribute DOMString poster; 1.30 + 1.31 + // A count of the number of video frames that have demuxed from the media 1.32 + // resource. If we were playing perfectly, we'd be able to paint this many 1.33 + // frames. 1.34 + readonly attribute unsigned long mozParsedFrames; 1.35 + 1.36 + // A count of the number of frames that have been decoded. We may drop 1.37 + // frames if the decode is taking too much time. 1.38 + readonly attribute unsigned long mozDecodedFrames; 1.39 + 1.40 + // A count of the number of frames that have been presented to the rendering 1.41 + // pipeline. We may drop frames if they arrive late at the renderer. 1.42 + readonly attribute unsigned long mozPresentedFrames; 1.43 + 1.44 + // Number of presented frames which were painted on screen. 1.45 + readonly attribute unsigned long mozPaintedFrames; 1.46 + 1.47 + // Time which the last painted video frame was late by, in seconds. 1.48 + readonly attribute double mozFrameDelay; 1.49 + 1.50 + // True if the video has an audio track available. 1.51 + readonly attribute bool mozHasAudio; 1.52 +}; 1.53 +