2008-07-09 01:22:20 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2008-07-09 01:22:20 -07:00
|
|
|
#include "domstubs.idl"
|
|
|
|
|
2014-05-08 13:45:36 -07:00
|
|
|
[uuid(7bd8c29f-8a76-453f-9373-79f820f2dc01)]
|
2010-08-25 01:43:00 -07:00
|
|
|
interface nsIDOMMediaError : nsISupports
|
2008-07-09 01:22:20 -07:00
|
|
|
{
|
|
|
|
/* 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;
|
|
|
|
|
2009-02-15 08:26:32 -08:00
|
|
|
/* No suitable media resource could be found */
|
2009-09-21 17:08:13 -07:00
|
|
|
const unsigned short MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
|
2009-02-15 08:26:32 -08:00
|
|
|
|
2008-07-09 01:22:20 -07:00
|
|
|
readonly attribute unsigned short code;
|
|
|
|
};
|