27 #ifndef __SB_GSTREAMERMEDIACORE_H__
28 #define __SB_GSTREAMERMEDIACORE_H__
30 #include <sbIGStreamerMediacore.h>
32 #include <nsIDOMEventListener.h>
33 #include <nsIDOMXULElement.h>
34 #include <nsIObserver.h>
35 #include <nsIPrefBranch2.h>
37 #include <nsAutoPtr.h>
40 #include <sbIMediacore.h>
41 #include <sbIMediacorePlaybackControl.h>
42 #include <sbIMediacoreVideoWindow.h>
43 #include <sbIMediacoreVolumeControl.h>
44 #include <sbIMediacoreVotingParticipant.h>
45 #include <sbIMediacoreEventTarget.h>
46 #include <sbIMediacoreError.h>
47 #include <sbIVideoBox.h>
49 #include <sbIPropertyArray.h>
81 NS_DECL_NSIDOMEVENTLISTENER
83 NS_DECL_SBIMEDIACOREEVENTTARGET
84 NS_DECL_SBIMEDIACOREVOTINGPARTICIPANT
85 NS_DECL_SBIMEDIACOREVIDEOWINDOW
86 NS_DECL_SBIGSTREAMERMEDIACORE
106 virtual nsresult
OnSetUri(nsIURI *aURI);
112 virtual nsresult
OnPlay();
114 virtual nsresult
OnStop();
115 virtual nsresult
OnSeek(PRUint64 aPosition, PRUint32 aFlag);
119 virtual nsresult
OnSetMute(PRBool aMute);
162 nsresult
GetFileSize(nsIURI *aURI, PRInt64 *aFileSize);
167 const char *aPropertyName, gint64 aPropertyValue);
171 static void aboutToFinishHandler(GstElement *playbin, gpointer
data);
172 static void videoCapsSetHelper(GObject *obj, GParamSpec *pspec,
173 sbGStreamerMediacore *core);
174 static void currentVideoSetHelper(GObject *obj, GParamSpec *pspec,
175 sbGStreamerMediacore *core);
176 static void audioCapsSetHelper(GObject *obj, GParamSpec *pspec,
177 sbGStreamerMediacore *core);
178 static void currentAudioSetHelper(GObject *obj, GParamSpec *pspec,
179 sbGStreamerMediacore *core);