Songbird / Development / Songbird Add-Ons API Documentation

components/mediacore/base/public/sbIMediacoreEvent.idl

00001 /*
00002  //
00003 // BEGIN SONGBIRD GPL
00004 // 
00005 // This file is part of the Songbird web player.
00006 //
00007 // Copyright(c) 2005-2008 POTI, Inc.
00008 // http://songbirdnest.com
00009 // 
00010 // This file may be licensed under the terms of of the
00011 // GNU General Public License Version 2 (the "GPL").
00012 // 
00013 // Software distributed under the License is distributed 
00014 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 
00015 // express or implied. See the GPL for the specific language 
00016 // governing rights and limitations.
00017 //
00018 // You should have received a copy of the GPL along with this 
00019 // program. If not, go to http://www.gnu.org/licenses/gpl.html
00020 // or write to the Free Software Foundation, Inc., 
00021 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00022 // 
00023 // END SONGBIRD GPL
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   // Sequencer Events
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   // End Sequencer Events
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 };

Generated on Tue Mar 10 14:28:55 2009 for Songbird by  doxygen 1.5.2