00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include "nsISupports.idl"
00028
00029 interface nsIVariant;
00030
00031 interface sbIMediacore;
00032 interface sbIMediacoreError;
00033 interface sbIMediacoreEventTarget;
00034
00039 [scriptable, uuid(d9d03746-6990-497c-85a9-718af44c2dac)]
00040 interface sbIMediacoreEvent : nsISupports
00041 {
00042 const unsigned long UNINTIALIZED = 0x00000000;
00043
00048 const unsigned long METADATA_CHANGE = 0x00001000;
00053 const unsigned long URI_CHANGE = 0x00001001;
00058 const unsigned long DURATION_CHANGE = 0x00001002;
00063 const unsigned long VOLUME_CHANGE = 0x00001003;
00068 const unsigned long MUTE_CHANGE = 0x00001004;
00069
00070
00071
00077 const unsigned long BEFORE_TRACK_CHANGE = 0x00001500;
00083 const unsigned long TRACK_CHANGE = 0x00001501;
00089 const unsigned long TRACK_INDEX_CHANGE = 0x00001502;
00094 const unsigned long BEFORE_VIEW_CHANGE = 0x00001503;
00099 const unsigned long VIEW_CHANGE = 0x00001504;
00105 const unsigned long SEQUENCE_CHANGE = 0x00001505;
00106
00107
00108
00113 const unsigned long STREAM_FOUND = 0x00002000;
00114
00119 const unsigned long STREAM_HAS_VIDEO = 0x00002001;
00120
00125 const unsigned long BUFFERING = 0x00003000;
00131 const unsigned long BUFFER_UNDERRUN = 0x00003001;
00132
00137 const unsigned long STREAM_START = 0x00004000;
00142 const unsigned long STREAM_PAUSE = 0x00004001;
00147 const unsigned long STREAM_END = 0x00004002;
00152 const unsigned long STREAM_STOP = 0x00004003;
00153
00158 const unsigned long PLUGIN_MISSING = 0x00008000;
00159
00163 const unsigned long CUSTOM_EVENT_BASE = 0x40000000;
00164
00168 const unsigned long ERROR_EVENT = 0x80000000;
00169
00173 readonly attribute unsigned long type;
00177 readonly attribute sbIMediacoreError error;
00178
00182 readonly attribute nsIVariant data;
00183
00187 readonly attribute sbIMediacore origin;
00191 readonly attribute sbIMediacoreEventTarget target;
00192 };