dom/interfaces/html/nsIDOMMediaError.idl
author Jean-Yves Avenard <jyavenard@mozilla.com>
Fri, 09 Sep 2016 15:43:25 +1000
changeset 357289 d17a9e0123a96a5597615764cba908807eeb47ce
parent 202569 c590fcb23c3c1c1bb3a41979b04fdc3031953130
permissions -rw-r--r--
Bug 1299072: P1. Add message attribute to MediaError object, r=bz,Ehsan,gerald MozReview-Commit-ID: HT6mIg4X0Sz

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "domstubs.idl"

[uuid(7bd8c29f-8a76-453f-9373-79f820f2dc01)]
interface nsIDOMMediaError : nsISupports
{
  /* The download of the media resource was aborted by
     the user agent at the user's requet */
  const unsigned short MEDIA_ERR_ABORTED = 1;

  /* A network error of some description caused the
     user agent to stop downloading the media resource */
  const unsigned short MEDIA_ERR_NETWORK = 2;

  /* An error of some description occurred while decoding
     the media resource */
  const unsigned short MEDIA_ERR_DECODE  = 3;

  /* No suitable media resource could be found */
  const unsigned short MEDIA_ERR_SRC_NOT_SUPPORTED = 4;

  readonly attribute unsigned short code;

  readonly attribute DOMString message;
};