dom/interfaces/html/nsIDOMMediaError.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/interfaces/html/nsIDOMMediaError.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     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 +#include "domstubs.idl"
    1.10 +
    1.11 +[scriptable, uuid(7bd8c29f-8a76-453f-9373-79f820f2dc01)]
    1.12 +interface nsIDOMMediaError : nsISupports
    1.13 +{
    1.14 +  /* The download of the media resource was aborted by
    1.15 +     the user agent at the user's requet */
    1.16 +  const unsigned short MEDIA_ERR_ABORTED = 1;
    1.17 +
    1.18 +  /* A network error of some description caused the 
    1.19 +     user agent to stop downloading the media resource */
    1.20 +  const unsigned short MEDIA_ERR_NETWORK = 2;
    1.21 +
    1.22 +  /* An error of some description occurred while decoding 
    1.23 +     the media resource */
    1.24 +  const unsigned short MEDIA_ERR_DECODE  = 3;
    1.25 +
    1.26 +  /* No suitable media resource could be found */
    1.27 +  const unsigned short MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
    1.28 +
    1.29 +  readonly attribute unsigned short code;
    1.30 +};

mercurial