| Motorola Mobility Confidential Restricted. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ToiMediaSession Interface Reference DescriptionEach media player, recorder, distributor and consumer generates a media session which can be accessed by any application through the (C++) ToiMediaService::OpenSession() function. This allows other applications than the actual owner to get stream information, extract stream data, set decryption keys etc. Sessions are created whenever ToiMediaPlayer::open(), ToiMediaRecorder::open(), (C++) ToiMediaConsumer::open(), ToiMediaService::createSessionInstance() are called.
Inheritance diagram for ToiMediaSession:
Member Typedef Documentation
List of ciphers.
List of cipher block modes.
Data type used for cipher keys and initialization vectors. These are stored as a sequence of bytes.
Cipher residue mode.
Data type used for data relay filter vectors. These are stored as a sequence of bytes.
The media session identifier type.
Data type used for identifying media session types. This type should be used as a bitmask as defined below.
State identifier used to identify the media session state.
Data type used to identify a stream.
Data type used for TToiStreamId vectors. These are stored as a sequence of TToiStreamId values. Member Function Documentation
Returns the asset identifier used for recording.
Get the session identifier.
Get the current value of a parameter.
Returns the current state of the media session.
Returns information about the stream handled by the session.
Get the session type bitmask. Note that a session can combine the different type constants.
Get the source URL of the session.
This method releases the resources used by this object and removes all registered observers. Upon return this object will no longer be available and must not be called. Note that this method does not close the associated session for the scenario where the application used ToiMediaSession:OpenSession to open the session. This can only be done by calling ToiMediaPlayer::close() or ToiMediaRecorder::close(). Note that this method may close the associated session and release any associated system resources for the scenario where the application used ToiMediaServiceCreateSessionInstance method. The session will be closed if the "reference count" of the relevant session goes down to zero (i.e. no other player, recorder or session class is still associated with this session.
Set the current value of a parameter.
Member Data Documentation
Advanced Encryption Standard (FIPS 197), 128 bit key length. This constant can also be accessed from toi.consts.ToiMediaSession.CIPHER_AES_128. ARIB Multi-2, 64 bit key length. This constant can also be accessed from toi.consts.ToiMediaSession.CIPHER_ARIB_MULTI2. Cipher block chaining. This constant can also be accessed from toi.consts.ToiMediaSession.CIPHER_BLOCK_MODE_CBC. Cipher feedback mode. This constant can also be accessed from toi.consts.ToiMediaSession.CIPHER_BLOCK_MODE_CFB. Counter mode. This constant can also be accessed from toi.consts.ToiMediaSession.CIPHER_BLOCK_MODE_CTR. Electronic Codebook Mode This constant can also be accessed from toi.consts.ToiMediaSession.CIPHER_BLOCK_MODE_ECB. Not applicable. This constant can also be accessed from toi.consts.ToiMediaSession.CIPHER_BLOCK_MODE_NONE. Output feedback mode. This constant can also be accessed from toi.consts.ToiMediaSession.CIPHER_BLOCK_MODE_OFB.
DVB Common Scrambling Algorithm, 64 bit key length. This constant can also be accessed from toi.consts.ToiMediaSession.CIPHER_DVB_CSA.
Disable decryption, key length should be zero. This constant can also be accessed from toi.consts.ToiMediaSession.CIPHER_NONE. Clear residue in the back. This constant can also be accessed from toi.consts.ToiMediaSession.CIPHER_RESIDUE_MODE_BACK. Cipher Text Stealing according to OpenCable CCCP 2.0. This constant can also be accessed from toi.consts.ToiMediaSession.CIPHER_RESIDUE_MODE_CTS. Clear residue in the front. This constant can also be accessed from toi.consts.ToiMediaSession.CIPHER_RESIDUE_MODE_FRONT. Not applicable. This constant can also be accessed from toi.consts.ToiMediaSession.CIPHER_RESIDUE_MODE_NONE. Output feedback mode according to ANSI/SCTE52. This constant can also be accessed from toi.consts.ToiMediaSession.CIPHER_RESIDUE_MODE_OFB.
Triple Data Encryption Standard This constant can also be accessed from toi.consts.ToiMediaSession.CIPHER_TRIPLE_DES.
The invalid media session identifier definition This constant can also be accessed from toi.consts.ToiMediaSession.INVALID_SESSION_ID.
This is an Event identifier for ToiMediaSessionParameterChangedEvent. This constant can also be accessed from toi.consts.ToiMediaSession.ON_PARAMETER_CHANGED.
This constant can also be accessed from toi.consts.ToiMediaSession.PROPERTY_DISTRIBUTION_CLIENT_MAC_ADDRESS.
This constant can also be accessed from toi.consts.ToiMediaSession.PROPERTY_DISTRIBUTION_DRM_TYPE.
This constant can also be accessed from toi.consts.ToiMediaSession.PROPERTY_DISTRIBUTION_PROTOCOL_TYPE.
This constant can also be accessed from toi.consts.ToiMediaSession.PROPERTY_DISTRIBUTION_STARTPOSITION.
This constant can also be accessed from toi.consts.ToiMediaSession.PROPERTY_DISTRIBUTION_TIMESHIFT_ASSET.
This constant can also be accessed from toi.consts.ToiMediaSession.PROPERTY_DISTRIBUTION_TRANSCODING_AUDIO_LANGUAGE.
This constant can also be accessed from toi.consts.ToiMediaSession.PROPERTY_DISTRIBUTION_TRANSCODING_DVS_ENABLED.
In ToiMediaSession::STATE_CLOSED the media session has been closed and will not be opened again. This constant can also be accessed from toi.consts.ToiMediaSession.STATE_CLOSED.
In ToiMediaSession::STATE_CONNECTING the media session is trying to connect to a media source. The session will not leave this state until it has recieved enough data to start playback, distribution or recording. It is possible for a session to later return to this state if the source becomes temporarily unavailable, for instance due to network congestion. This constant can also be accessed from toi.consts.ToiMediaSession.STATE_CONNECTING.
In ToiMediaSession::STATE_FAILED the media session has permanently failed. This constant can also be accessed from toi.consts.ToiMediaSession.STATE_FAILED.
In ToiMediaSession::STATE_RUNNING the media session is fully connected and has received enough data. Note that this state does not reveal any information about the playback position or pace. This constant can also be accessed from toi.consts.ToiMediaSession.STATE_RUNNING. Session is used for consuming a stream. This constant can also be accessed from toi.consts.ToiMediaSession.TYPE_CONSUMER. Session is used for distributing a stream to other network devices. This constant can also be accessed from toi.consts.ToiMediaSession.TYPE_DISTRIBUTOR.
This constant can also be accessed from toi.consts.ToiMediaSession.TYPE_EXTENDED.
Session is used for playing a stream. This constant can also be accessed from toi.consts.ToiMediaSession.TYPE_PLAYER. Session is used for recording a stream. This constant can also be accessed from toi.consts.ToiMediaSession.TYPE_RECORDER. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||