dom/media/nsIDOMNavigatorUserMedia.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/media/nsIDOMNavigatorUserMedia.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#include "nsISupports.idl"
     1.9 +#include "nsIVariant.idl"
    1.10 +#include "nsIDOMMediaStream.idl"
    1.11 +
    1.12 +[scriptable, builtinclass, uuid(4af2bdb7-1547-4d10-8886-02a78c3c0b83)]
    1.13 +interface nsIMediaDevice : nsISupports
    1.14 +{
    1.15 +  readonly attribute DOMString type;
    1.16 +  readonly attribute DOMString name;
    1.17 +  readonly attribute DOMString id;
    1.18 +  readonly attribute DOMString facingMode;
    1.19 +};
    1.20 +
    1.21 +[scriptable, function, uuid(24544878-d35e-4962-8c5f-fb84e97bdfee)]
    1.22 +interface nsIGetUserMediaDevicesSuccessCallback : nsISupports
    1.23 +{
    1.24 +  void onSuccess(in nsIVariant devices);
    1.25 +};
    1.26 +
    1.27 +[scriptable, function, uuid(f2a144fc-3534-4761-8c5d-989ae720f89a)]
    1.28 +interface nsIDOMGetUserMediaSuccessCallback : nsISupports
    1.29 +{
    1.30 +  /*
    1.31 +   * value must be a nsIDOMBlob if picture is true and a
    1.32 +   * nsIDOMLocalMediaStream if either audio or video are true.
    1.33 +   */
    1.34 +  void onSuccess(in nsISupports value);
    1.35 +};
    1.36 +
    1.37 +[scriptable, function, uuid(2614bbcf-85cc-43e5-8740-964f52bdc7ca)]
    1.38 +interface nsIDOMGetUserMediaErrorCallback : nsISupports
    1.39 +{
    1.40 +  void onError(in DOMString error);
    1.41 +};

mercurial