#include <sbBaseMediacoreFactory.h>
Public Member Functions | |
NS_DECL_ISUPPORTS NS_DECL_SBIMEDIACOREFACTORY | sbBaseMediacoreFactory () |
nsresult | InitBaseMediacoreFactory () |
nsresult | SetContractID (const nsAString &aContractID) |
nsresult | SetName (const nsAString &aName) |
virtual nsresult | OnInitBaseMediacoreFactory () |
virtual nsresult | OnGetCapabilities (sbIMediacoreCapabilities **aCapabilities) |
virtual nsresult | OnCreate (const nsAString &aInstanceName, sbIMediacore **_retval) |
Public Member Functions inherited from sbIMediacoreFactory | |
sbIMediacore | create (in AString aInstanceName) |
Protected Member Functions | |
virtual | ~sbBaseMediacoreFactory () |
Protected Attributes | |
PRMonitor * | mMonitor |
nsString | mContractID |
nsString | mName |
Additional Inherited Members | |
Public Attributes inherited from sbIMediacoreFactory | |
readonly attribute AString | contractID |
readonly attribute AString | name |
readonly attribute sbIMediacoreCapabilities | capabilities |
Definition at line 40 of file sbBaseMediacoreFactory.h.
NS_DECL_ISUPPORTS NS_DECL_SBIMEDIACOREFACTORY sbBaseMediacoreFactory::sbBaseMediacoreFactory | ( | ) |
|
protectedvirtual |
Definition at line 64 of file sbBaseMediacoreFactory.cpp.
nsresult sbBaseMediacoreFactory::InitBaseMediacoreFactory | ( | ) |
Definition at line 75 of file sbBaseMediacoreFactory.cpp.
|
virtual |
You should now create a new core with the requested instance name and return it in *_retval. Do not add a reference to the object. The reference will be added for you!
Reimplemented in sbGStreamerMediacoreFactory, and sbMediacoreFactoryWrapper.
Definition at line 199 of file sbBaseMediacoreFactory.cpp.
|
virtual |
You'll probably want to call a static method on your media core implementation here.
This method would return a static list of capabilities. It's important to return a fairly accurate list because the capabilities will be used to determine which core is worth initializing when attempting to perform a playback or transcoding operation.
Reimplemented in sbMediacoreFactoryWrapper, and sbGStreamerMediacoreFactory.
Definition at line 182 of file sbBaseMediacoreFactory.cpp.
|
virtual |
You'll probably want to set the contract id and the name of the factory at this point.
rv = SetName(NS_LITERAL_STRING("Sample Mediacore Factory")); NS_ENSURE_SUCCESS(rv, rv);
rv = SetContractID("@example.com/Example/Mediacore/Factory;1"); NS_ENSURE_SUCCESS(rv, rv);
Reimplemented in sbMediacoreFactoryWrapper, and sbGStreamerMediacoreFactory.
Definition at line 165 of file sbBaseMediacoreFactory.cpp.
nsresult sbBaseMediacoreFactory::SetContractID | ( | const nsAString & | aContractID | ) |
Definition at line 86 of file sbBaseMediacoreFactory.cpp.
nsresult sbBaseMediacoreFactory::SetName | ( | const nsAString & | aName | ) |
Definition at line 98 of file sbBaseMediacoreFactory.cpp.
|
protected |
Definition at line 68 of file sbBaseMediacoreFactory.h.
|
protected |
Definition at line 66 of file sbBaseMediacoreFactory.h.
|
protected |
Definition at line 69 of file sbBaseMediacoreFactory.h.