|
Ocean
|
This class implements the android library. More...
#include <ALibrary.h>
Public Member Functions | |
| MediumRef | newMedium (const std::string &url, bool useExclusive=false) override |
| Creates a new medium by a given url. | |
| MediumRef | newMedium (const std::string &url, const Medium::Type type, bool useExclusive=false) override |
| Creates a new medium by a given url and an expected type. | |
| RecorderRef | newRecorder (const Recorder::Type type) override |
| Creates a new recorder specified by the recorder type. | |
| Definitions | selectableMedia () const override |
| Returns a list of selectable mediums. | |
| Definitions | selectableMedia (const Medium::Type type) const override |
| Returns a list of specific selectable mediums. | |
| Medium::Type | supportedTypes () const override |
| Returns the supported medium types. | |
Public Member Functions inherited from Ocean::Media::Library | |
| const std::string & | name () const |
| Returns the name of the library. | |
| bool | supports (const Medium::Type type) const |
| Returns whether the library supports a given medium type. | |
| bool | notSupported (const std::string &extension) const |
| Returns whether a given file extension is not supported by this library. | |
Static Public Member Functions | |
| static bool | registerLibrary () |
| Registers this library at the global media manager. | |
| static bool | unregisterLibrary () |
| Unregisters this library at the global media manager. | |
Static Public Member Functions inherited from Ocean::Media::Library | |
| static std::string | convertDefinition (const Definition &definition) |
| Converts a medium definition to one string. | |
| static Definition | convertDefinition (const std::string &string) |
| Converts a string to a medium definition. | |
Protected Member Functions | |
| ALibrary () | |
| Creates a new ALibrary object. | |
| ~ALibrary () override | |
| Destructs an ALibrary object. | |
| MediumRef | newAudio (const std::string &url, bool useExclusive) |
| Creates a new audio medium. | |
| MediumRef | newLiveAudio (const std::string &url, bool useExclusive) |
| Creates a new live audio medium. | |
| MediumRef | newMicrophone (const std::string &url, bool useExclusive) |
| Creates a new microphone medium. | |
| bool | initializerAudioEngine () |
| Initializes the SL audio engine. | |
| void | releaseAudioEngine () |
| Releases the SL audio engine. | |
| MediumRef | newLiveVideo (const std::string &url, bool useExclusive) const |
| Creates a new live video medium. | |
Protected Member Functions inherited from Ocean::Media::Library | |
| Library (const Library &library)=delete | |
| Disabled copy constructor. | |
| Library (const std::string &name, const unsigned int priority) | |
| Creates a new Library object. | |
| virtual | ~Library () |
| Destructs a library. | |
| unsigned int | priority () const |
| Returns the priority of this library. | |
| void | registerNotSupportedExtension (const std::string &extension) |
| Registers file extensions not supported by this library. | |
| Library & | operator= (const Library &library)=delete |
| Disabled copy operator. | |
Static Protected Member Functions | |
| static MediumRef | newMovie (const std::string &url, bool useExclusive) |
| Creates a new movie medium. | |
| static LibraryRef | create () |
| Creates this library and returns it an object reference. | |
Protected Attributes | |
| SLObjectItf | slEngine_ = nullptr |
| The SL engine for all audio objects. | |
| SLEngineItf | slEngineInterface_ = nullptr |
| The SL engine interface for all audio objects. | |
| NativeCameraLibrary::ScopedSubscription | nativeCameraLibrarySubscription_ |
| The subscription for the native camera library. | |
| ALiveVideo::Devices | selectableLiveVideoDevices_ |
| The selectable live video devices. | |
| NativeMediaLibrary::ScopedSubscription | nativeMediaLibrarySubscription_ |
| The subscription for the native media library. | |
Protected Attributes inherited from Ocean::Media::Library | |
| std::string | libraryName |
| The name of the library. | |
| unsigned int | libraryPriority |
| Priority of this library, the higher the value, the higher the priority. | |
| Lock | lock |
| Library lock. | |
Friends | |
| class | Media::Manager |
| class | AAudio |
| class | ALiveAudio |
| class | ALiveVideo |
| class | AMovie |
Additional Inherited Members | |
Public Types inherited from Ocean::Media::Library | |
| using | Definitions = std::vector< Definition > |
| Definition of a vector holding medium definition objects. | |
Protected Types inherited from Ocean::Media::Library | |
| using | ExtensionSet = std::set< std::string > |
| Definition of a set holding file extensions. | |
This class implements the android library.
|
protected |
Creates a new ALibrary object.
|
overrideprotected |
Destructs an ALibrary object.
|
staticprotected |
Creates this library and returns it an object reference.
|
protected |
Initializes the SL audio engine.
|
protected |
Creates a new audio medium.
| url | The URL of the audio medium to create |
| useExclusive | Determines whether the caller would like to use this medium exclusively |
|
protected |
Creates a new live audio medium.
| url | The URL of the audio medium to create |
| useExclusive | Determines whether the caller would like to use this medium exclusively |
|
protected |
Creates a new live video medium.
| url | The URL of the live video medium to create |
| useExclusive | Determines whether the caller would like to use this medium exclusively |
|
overridevirtual |
Creates a new medium by a given url.
Implements Ocean::Media::Library.
|
overridevirtual |
Creates a new medium by a given url and an expected type.
Implements Ocean::Media::Library.
|
protected |
Creates a new microphone medium.
| url | The URL of the audio medium to create |
| useExclusive | Determines whether the caller would like to use this medium exclusively |
|
staticprotected |
Creates a new movie medium.
| url | The URL of the movie medium to create |
| useExclusive | Determines whether the caller would like to use this medium exclusively |
|
overridevirtual |
Creates a new recorder specified by the recorder type.
Implements Ocean::Media::Library.
|
static |
Registers this library at the global media manager.
With each register call, the reference counter for a specific library will be incremented. Each call to registerLibrary() needs to be balanced with a corresponding call of unregisterLibrary() before shutting down.
|
protected |
Releases the SL audio engine.
|
overridevirtual |
Returns a list of selectable mediums.
Reimplemented from Ocean::Media::Library.
|
overridevirtual |
Returns a list of specific selectable mediums.
Reimplemented from Ocean::Media::Library.
|
overridevirtual |
Returns the supported medium types.
Reimplemented from Ocean::Media::Library.
|
static |
Unregisters this library at the global media manager.
With each unregister call, the reference counter for a specific library will be decremented and removed from the system if the counter reaches zero. Each call to registerLibrary() needs to be balanced with a corresponding call of unregisterLibrary() before shutting down.
|
friend |
|
friend |
|
friend |
|
protected |
The subscription for the native camera library.
|
protected |
The subscription for the native media library.
|
mutableprotected |
The selectable live video devices.
|
protected |
The SL engine for all audio objects.
|
protected |
The SL engine interface for all audio objects.