#include <sbGStreamerMetadataHandler.h>
Public Member Functions | |
NS_DECL_ISUPPORTS NS_DECL_SBIMETADATAHANDLER virtual NS_DECL_NSITIMERCALLBACK void | HandleMessage (GstMessage *message) |
virtual PRBool | HandleSynchronousMessage (GstMessage *message) |
sbGStreamerMetadataHandler () | |
nsresult | Init () |
Public Member Functions inherited from sbIMetadataHandler | |
PRInt32 | vote (in AString aUrl) |
Vote to be the handler returned for the given url. More... | |
PRInt32 | read () |
Start the read operation. More... | |
PRInt32 | write () |
Start the write operation. More... | |
void | getImageData (in PRInt32 aType, out AUTF8String aMimeType, out unsigned long aDataLen, [array, retval, size_is(aDataLen)] out octet aData) |
void | setImageData (in PRInt32 aType, in AString aUrl) |
void | onChannelData (in nsISupports aChannel) |
Be thou informst that one's sbIMetadataChannel has just received data. More... | |
void | close () |
Close down the internals of the handler, stop any asynchronous operations, free any allocations. More... | |
Protected Member Functions | |
void | HandleTagMessage (GstMessage *message) |
nsresult | FinalizeTags (PRBool aSucceeded) |
Static Protected Member Functions | |
static void | on_pad_added (GstElement *decodeBin, GstPad *newPad, sbGStreamerMetadataHandler *self) |
static void | on_pad_caps_changed (GstPad *pad, GParamSpec *pspec, sbGStreamerMetadataHandler *data) |
Protected Attributes | |
PRLock * | mLock |
GstElement * | mPipeline |
GstTagList * | mTags |
nsCOMPtr< sbIMutablePropertyArray > | mProperties |
PRBool | mHasAudio |
PRBool | mHasVideo |
nsCOMPtr< nsIChannel > | mChannel |
nsCOMPtr< nsITimer > | mTimer |
nsCOMPtr< sbIMediacoreFactory > | mFactory |
nsCString | mSpec |
PRBool | mCompleted |
Additional Inherited Members | |
Public Attributes inherited from sbIMetadataHandler | |
const PRUint32 | METADATA_IMAGE_TYPE_OTHER = 0x00 |
Constant for the type of image in the metadata, these are pulled from the taglib/attachedpictureframe.h. More... | |
const PRUint32 | METADATA_IMAGE_TYPE_FILEICON = 0x01 |
const PRUint32 | METADATA_IMAGE_TYPE_OTHERFILEICON = 0x02 |
const PRUint32 | METADATA_IMAGE_TYPE_FRONTCOVER = 0x03 |
const PRUint32 | METADATA_IMAGE_TYPE_BACKCOVER = 0x04 |
const PRUint32 | METADATA_IMAGE_TYPE_LEAFLETPAGE = 0x05 |
const PRUint32 | METADATA_IMAGE_TYPE_MEDIA = 0x06 |
const PRUint32 | METADATA_IMAGE_TYPE_LEADARTIST = 0x07 |
const PRUint32 | METADATA_IMAGE_TYPE_ARTIST = 0x08 |
const PRUint32 | METADATA_IMAGE_TYPE_CONDUCTOR = 0x09 |
const PRUint32 | METADATA_IMAGE_TYPE_BAND = 0x0A |
const PRUint32 | METADATA_IMAGE_TYPE_COMPOSER = 0x0B |
const PRUint32 | METADATA_IMAGE_TYPE_LYRICIST = 0x0C |
const PRUint32 | METADATA_IMAGE_TYPE_RECORDINGLOCATION = 0x0D |
const PRUint32 | METADATA_IMAGE_TYPE_DURINGRECORDING = 0x0E |
const PRUint32 | METADATA_IMAGE_TYPE_DURINGPERFORMANCE = 0x0F |
const PRUint32 | METADATA_IMAGE_TYPE_MOVIESCREENCAPTURE = 0x10 |
const PRUint32 | METADATA_IMAGE_TYPE_COLOUREDFISH = 0x11 |
const PRUint32 | METADATA_IMAGE_TYPE_ILLUSTRATION = 0x12 |
const PRUint32 | METADATA_IMAGE_TYPE_BANDLOGO = 0x13 |
const PRUint32 | METADATA_IMAGE_TYPE_PUBLISHERLOGO = 0x14 |
readonly attribute ACString | contractID |
The Contract ID for the metadata handler. More... | |
attribute sbIMutablePropertyArray | props |
An array of metadata properties. More... | |
readonly attribute PRBool | completed |
Whether or not the object has completed its read/write operation. More... | |
readonly attribute PRBool | requiresMainThread |
Whether or not this handler MUST be run on the main thread. More... | |
attribute nsIChannel | channel |
The object's nsIChannel. More... | |
Definition at line 46 of file sbGStreamerMetadataHandler.h.
sbGStreamerMetadataHandler::sbGStreamerMetadataHandler | ( | ) |
|
protected |
Prepare the tags for reporting to the caller
aSucceeded | true if metadata scanning had succeded |
Definition at line 753 of file sbGStreamerMetadataHandler.cpp.
|
virtual |
Implements sbGStreamerMessageHandler.
Definition at line 486 of file sbGStreamerMetadataHandler.cpp.
|
virtual |
Implements sbGStreamerMessageHandler.
Definition at line 589 of file sbGStreamerMetadataHandler.cpp.
|
protected |
Definition at line 727 of file sbGStreamerMetadataHandler.cpp.
nsresult sbGStreamerMetadataHandler::Init | ( | ) |
Definition at line 115 of file sbGStreamerMetadataHandler.cpp.
|
staticprotected |
Definition at line 596 of file sbGStreamerMetadataHandler.cpp.
|
staticprotected |
Definition at line 678 of file sbGStreamerMetadataHandler.cpp.
|
protected |
Definition at line 90 of file sbGStreamerMetadataHandler.h.
|
protected |
Definition at line 94 of file sbGStreamerMetadataHandler.h.
|
protected |
Definition at line 92 of file sbGStreamerMetadataHandler.h.
|
protected |
Definition at line 78 of file sbGStreamerMetadataHandler.h.
|
protected |
Definition at line 79 of file sbGStreamerMetadataHandler.h.
|
protected |
Definition at line 69 of file sbGStreamerMetadataHandler.h.
|
protected |
Definition at line 70 of file sbGStreamerMetadataHandler.h.
|
protected |
Definition at line 76 of file sbGStreamerMetadataHandler.h.
|
protected |
Definition at line 93 of file sbGStreamerMetadataHandler.h.
|
protected |
Definition at line 75 of file sbGStreamerMetadataHandler.h.
|
protected |
Definition at line 91 of file sbGStreamerMetadataHandler.h.