#include <sbGStreamerMediacore.h>
Public Member Functions | |
NS_DECL_ISUPPORTS NS_DECL_NSICLASSINFO NS_DECL_NSIDOMEVENTLISTENER NS_DECL_NSIOBSERVER NS_DECL_SBIMEDIACOREEVENTTARGET NS_DECL_SBIMEDIACOREVOTINGPARTICIPANT NS_DECL_SBIMEDIACOREVIDEOWINDOW NS_DECL_SBIGSTREAMERMEDIACORE | sbGStreamerMediacore () |
nsresult | Init () |
virtual nsresult | OnInitBaseMediacore () |
virtual nsresult | OnGetCapabilities () |
virtual nsresult | OnShutdown () |
virtual nsresult | OnInitBaseMediacoreMultibandEqualizer () |
virtual nsresult | OnSetEqEnabled (PRBool aEqEnabled) |
virtual nsresult | OnGetBandCount (PRUint32 *aBandCount) |
virtual nsresult | OnGetBand (PRUint32 aBandIndex, sbIMediacoreEqualizerBand *aBand) |
virtual nsresult | OnSetBand (sbIMediacoreEqualizerBand *aBand) |
virtual nsresult | OnInitBaseMediacorePlaybackControl () |
virtual nsresult | OnSetUri (nsIURI *aURI) |
virtual nsresult | OnGetDuration (PRUint64 *aDuration) |
virtual nsresult | OnGetPosition (PRUint64 *aPosition) |
virtual nsresult | OnSetPosition (PRUint64 aPosition) |
virtual nsresult | OnGetIsPlayingAudio (PRBool *aIsPlayingAudio) |
virtual nsresult | OnGetIsPlayingVideo (PRBool *aIsPlayingVideo) |
virtual nsresult | OnPlay () |
virtual nsresult | OnPause () |
virtual nsresult | OnStop () |
virtual nsresult | OnSeek (PRUint64 aPosition, PRUint32 aFlag) |
virtual nsresult | OnInitBaseMediacoreVolumeControl () |
virtual nsresult | OnSetMute (PRBool aMute) |
virtual nsresult | OnSetVolume (PRFloat64 aVolume) |
virtual void | HandleMessage (GstMessage *message) |
virtual PRBool | HandleSynchronousMessage (GstMessage *message) |
virtual nsresult | AddAudioFilter (GstElement *aElement) |
virtual nsresult | RemoveAudioFilter (GstElement *aElement) |
void | RequestVideoWindow () |
Public Member Functions inherited from sbBaseMediacore | |
NS_DECL_ISUPPORTS NS_DECL_NSICLASSINFO NS_DECL_SBIMEDIACORE | sbBaseMediacore () |
nsresult | InitBaseMediacore () |
nsresult | SetInstanceName (const nsAString &aInstanceName) |
nsresult | SetCapabilities (sbIMediacoreCapabilities *aCapabilities) |
nsresult | SetStatus (sbIMediacoreStatus *aStatus) |
virtual nsresult | OnSetSequencer (sbIMediacoreSequencer *aSequencer) |
Public Member Functions inherited from sbIMediacore | |
void | shutdown () |
Public Member Functions inherited from sbBaseMediacoreMultibandEqualizer | |
NS_DECL_ISUPPORTS NS_DECL_SBIMEDIACOREMULTIBANDEQUALIZER | sbBaseMediacoreMultibandEqualizer () |
nsresult | InitBaseMediacoreMultibandEqualizer () |
Public Member Functions inherited from sbIMediacoreMultibandEqualizer | |
sbIMediacoreEqualizerBand | getBand (in unsigned long aBandIndex) |
Get a band. More... | |
void | setBand (in sbIMediacoreEqualizerBand aBand) |
Set a band. More... | |
Public Member Functions inherited from sbBaseMediacorePlaybackControl | |
NS_DECL_ISUPPORTS NS_DECL_SBIMEDIACOREPLAYBACKCONTROL | sbBaseMediacorePlaybackControl () |
nsresult | InitBaseMediacorePlaybackControl () |
Public Member Functions inherited from sbIMediacorePlaybackControl | |
void | play () |
void | pause () |
void | stop () |
void | seek (in unsigned long long position, in unsigned long flags) |
Public Member Functions inherited from sbIMediacoreEventTarget | |
void | addListener (in sbIMediacoreEventListener aListener) |
void | removeListener (in sbIMediacoreEventListener aListener) |
boolean | dispatchEvent (in sbIMediacoreEvent aEvent, [optional] in boolean aAsync) |
Public Member Functions inherited from sbBaseMediacoreVolumeControl | |
NS_DECL_ISUPPORTS NS_DECL_SBIMEDIACOREVOLUMECONTROL | sbBaseMediacoreVolumeControl () |
nsresult | InitBaseMediacoreVolumeControl () |
Public Member Functions inherited from sbIMediacoreVotingParticipant | |
unsigned long | voteWithURI (in nsIURI aURI) |
unsigned long | voteWithChannel (in nsIChannel aChannel) |
Public Member Functions inherited from sbIGstAudioFilter | |
virtual | ~sbIGstAudioFilter () |
Protected Member Functions | |
virtual | ~sbGStreamerMediacore () |
nsresult | DestroyPipeline () |
nsresult | CreatePlaybackPipeline () |
void | DispatchMediacoreEvent (unsigned long type, nsIVariant *aData=NULL, sbIMediacoreError *aError=NULL) |
void | HandleAboutToFinishSignal () |
void | HandleTagMessage (GstMessage *message) |
void | HandleStateChangedMessage (GstMessage *message) |
void | HandleEOSMessage (GstMessage *message) |
void | HandleErrorMessage (GstMessage *message) |
void | HandleWarningMessage (GstMessage *message) |
void | HandleBufferingMessage (GstMessage *message) |
void | HandleRedirectMessage (GstMessage *message) |
void | HandleMissingPluginMessage (GstMessage *message) |
void | OnAudioCapsSet (GstCaps *caps) |
void | OnVideoCapsSet (GstCaps *caps) |
GstElement * | CreateSinkFromPrefs (const char *aSinkDescription) |
GstElement * | CreateVideoSink () |
GstElement * | CreateAudioSink () |
nsresult | InitPreferences () |
nsresult | ReadPreferences () |
nsresult | SetBufferingProperties (GstElement *aPipeline) |
nsresult | SendInitialBufferingEvent () |
nsresult | GetFileSize (nsIURI *aURI, PRInt64 *aFileSize) |
void | AbortAndRestartPlayback () |
bool | SetPropertyOnChild (GstElement *aElement, const char *aPropertyName, gint64 aPropertyValue) |
Protected Member Functions inherited from sbBaseMediacore | |
virtual | ~sbBaseMediacore () |
Protected Member Functions inherited from sbBaseMediacoreMultibandEqualizer | |
virtual | ~sbBaseMediacoreMultibandEqualizer () |
nsresult | EnsureBandIsCached (sbIMediacoreEqualizerBand *aBand) |
Protected Member Functions inherited from sbBaseMediacorePlaybackControl | |
virtual | ~sbBaseMediacorePlaybackControl () |
nsresult | DispatchPlaybackControlEvent (PRUint32 aType) |
Protected Member Functions inherited from sbBaseMediacoreVolumeControl | |
virtual | ~sbBaseMediacoreVolumeControl () |
Additional Inherited Members | |
Public Attributes inherited from sbIMediacore | |
readonly attribute AString | instanceName |
readonly attribute sbIMediacoreCapabilities | capabilities |
readonly attribute sbIMediacoreStatus | status |
attribute sbIMediacoreSequencer | sequencer |
Public Attributes inherited from sbIMediacoreMultibandEqualizer | |
attribute boolean | eqEnabled |
Whether the EQ is enabled or not. More... | |
attribute nsISimpleEnumerator | bands |
Enumerator containing all available bands. More... | |
readonly attribute unsigned long | bandCount |
The number of bands available. More... | |
attribute AString | currentPresetName |
The name of the current equalizer preset. More... | |
Public Attributes inherited from sbIMediacorePlaybackControl | |
attribute nsIURI | uri |
attribute unsigned long long | position |
readonly attribute unsigned long long | duration |
readonly attribute boolean | isPlayingAudio |
readonly attribute boolean | isPlayingVideo |
const unsigned long | SEEK_FLAG_NORMAL = 0 |
const unsigned long | SEEK_FLAG_KEYFRAME = 1 |
Public Attributes inherited from sbIMediacoreVolumeControl | |
attribute boolean | mute |
attribute double | volume |
Public Attributes inherited from sbIGStreamerMediacore | |
readonly attribute AString | gstreamerVersion |
Public Attributes inherited from sbIMediacoreVideoWindow | |
attribute boolean | fullscreen |
Video window fullscreen attribute. More... | |
attribute nsIDOMXULElement | videoWindow |
DOM XUL Element used as the video box. More... | |
Static Public Attributes inherited from sbBaseMediacoreMultibandEqualizer | |
static const nsEmbedString | NO_PRESET = NS_LITERAL_STRING("") |
Value of currentPResetName if the equalizer is not set by a preset. This value is set as empty string (""). More... | |
static const PRUint32 | EQUALIZER_BAND_COUNT_DEFAULT = 10 |
Suggested default band count for the equalizer. This value is defined as 10. More... | |
static const PRUint32 | EQUALIZER_BANDS_10 [10] |
Suggested bands for a 10 band equalizer. More... | |
Protected Types inherited from sbBaseMediacoreMultibandEqualizer | |
typedef nsInterfaceHashtable < nsUint32HashKey, sbIMediacoreEqualizerBand > | eqbands_t |
Static Protected Member Functions inherited from sbBaseMediacoreMultibandEqualizer | |
template<class T > | |
static | NS_HIDDEN_ (PLDHashOperator) EnumerateIntoArrayUint32Key(const PRUint32 &aKey |
Definition at line 66 of file sbGStreamerMediacore.h.
sbIMediacoreEventTarget sbGStreamerMediacore::sbGStreamerMediacore | ( | ) |
Definition at line 164 of file sbGStreamerMediacore.cpp.
|
protectedvirtual |
Definition at line 200 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 1626 of file sbGStreamerMediacore.cpp.
|
virtual |
Implements sbIGstAudioFilter.
Definition at line 2423 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 468 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 763 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 416 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 455 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 628 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 868 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 431 of file sbGStreamerMediacore.cpp.
|
protected |
|
protected |
Definition at line 1033 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 1285 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 1298 of file sbGStreamerMediacore.cpp.
|
virtual |
Implements sbGStreamerMessageHandler.
Definition at line 1450 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 1150 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 1097 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 984 of file sbGStreamerMediacore.cpp.
|
virtual |
Implements sbGStreamerMessageHandler.
Definition at line 834 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 954 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 1424 of file sbGStreamerMediacore.cpp.
nsresult sbGStreamerMediacore::Init | ( | ) |
|
protected |
Definition at line 264 of file sbGStreamerMediacore.cpp.
|
protected |
|
virtual |
Reimplemented from sbBaseMediacoreMultibandEqualizer.
Definition at line 1773 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacoreMultibandEqualizer.
Definition at line 1755 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacore.
Definition at line 1667 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacorePlaybackControl.
Definition at line 1871 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacorePlaybackControl.
Definition at line 2007 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacorePlaybackControl.
Definition at line 2020 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacorePlaybackControl.
Definition at line 1909 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacore.
Definition at line 1654 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacoreMultibandEqualizer.
Definition at line 1695 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacorePlaybackControl.
Definition at line 1832 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacoreVolumeControl.
Definition at line 2139 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacorePlaybackControl.
Definition at line 2098 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacorePlaybackControl.
Definition at line 2033 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacorePlaybackControl.
Definition at line 1955 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacoreMultibandEqualizer.
Definition at line 1797 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacoreMultibandEqualizer.
Definition at line 1730 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacoreVolumeControl.
Definition at line 2148 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacorePlaybackControl.
Definition at line 1949 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacorePlaybackControl.
Definition at line 1838 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacoreVolumeControl.
Definition at line 2170 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacore.
Definition at line 1674 of file sbGStreamerMediacore.cpp.
|
virtual |
Reimplemented from sbBaseMediacorePlaybackControl.
Definition at line 2115 of file sbGStreamerMediacore.cpp.
|
protected |
|
protected |
Definition at line 280 of file sbGStreamerMediacore.cpp.
|
virtual |
Implements sbIGstAudioFilter.
Definition at line 2434 of file sbGStreamerMediacore.cpp.
void sbGStreamerMediacore::RequestVideoWindow | ( | ) |
|
protected |
Definition at line 2078 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 699 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 713 of file sbGStreamerMediacore.cpp.
|
protected |
Definition at line 247 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 258 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 195 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 234 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 232 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 191 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 208 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 256 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 253 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 222 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 198 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 240 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 261 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 250 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 260 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 210 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 185 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 214 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 183 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 188 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 189 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 243 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 193 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 203 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 197 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 237 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 238 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 206 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 235 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 202 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 218 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 229 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 231 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 226 of file sbGStreamerMediacore.h.
|
protected |
Definition at line 221 of file sbGStreamerMediacore.h.