| Motorola Mobility Confidential Restricted. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ToiMediaService Interface Reference DescriptionToiMediaService is the main interface of the Media Service. It is used by applications to create media consumers, players,sessions and recorders. Each player, recorder, session and consumer generates a media session which can be accessed by any application through the (C++) OpenSession() function. This allows other applications than the actual owner to get stream information, extract stream data, set decryption keys etc.
Inheritance diagram for ToiMediaService:
Member Typedef Documentation
Sequence of sessions. Member Function Documentation
This function creates a new media consumer. A media consumer can be used to fetch data from a media stream without allocating media decoder and recorder resources. This may be useful for applications that wants to filter out stream data without actually playing the stream. When the application no longer needs the media consumer, it must release it by calling ToiMediaConsumer::releaseInstance(). This will return the underlying resources to the system.
This function creates a new Picture in Picture media player and associates it with the calling application. When the application no longer needs the media player, it must release it by calling ToiMediaPlayer::releaseInstance(). This will return the underlying resources to the system.
This function creates a new media player and associates it with the calling application. When the application no longer needs the media player, it must release it by calling ToiMediaPlayer::releaseInstance(). This will return the underlying resources to the system.
This function creates a new media recorder and associates it with the calling application. When the application no longer needs the media recorder, it must release it by calling ToiMediaRecorder::releaseInstance(). This will return the underlying resources to the system.
Open an existing session. Each call to this method returns the address of a unique object that must be released when no longer needed, by calling ToiMediaSession::releaseInstance(). Note that the actual session does not necessarily have to be owned by the application calling this function. It may still be used by the owner to access the functionality of the ToiMediaSession interface.
Member Data DocumentationIn ToiMediaService::DISTRIBUTOR_STATE_CONNECTING the media distributor has an active session and is in the process of establishing a connection to a media stream source. If a session exists that is attached to the same source, then the Media Distributor will use this session. The media disributor will leave this state automatically and enter ToiMediaService::DISTRIBUTOR_STATE_PAUSED when it has successfully established the connection to the media distributor's stream source. If the media distributor decides it cannot connect, it will enter ToiMediaService::DISTRIBUTOR_STATE_FAILED. This constant can also be accessed from toi.consts.ToiMediaService.DISTRIBUTOR_STATE_CONNECTING. In ToiMediaService::DISTRIBUTOR_STATE_FAILED the media distributor may or may not have a connection to a media destination but the process of getting the stream to that destination failed in some fatal way. This constant can also be accessed from toi.consts.ToiMediaService.DISTRIBUTOR_STATE_FAILED. In ToiMediaService::DISTRIBUTOR_STATE_FASTFORWARDING the media distributor has a connection to a media destination and distributes the stream to that destination in forward direction at a pace above normal playback. For streams on which this operation cannot be performed, this state is not available. On a command from the media destination, the media distributor will leave this state for one of the other media distributor states. ToiMediaService::DISTRIBUTOR_STATE_PLAYING, ToiMediaService::DISTRIBUTOR_STATE_PAUSED, or ToiMediaService::DISTRIBUTOR_STATE_REWINDING. If an error occurs with the stream severe enough for the media distributor to determine it cannot continue distribution, the media distributor will go to ToiMediaService::DISTRIBUTOR_STATE_FAILED. This constant can also be accessed from toi.consts.ToiMediaService.DISTRIBUTOR_STATE_FASTFORWARDING. In ToiMediaService::DISTRIBUTOR_STATE_IDLE the media distributor is not actively streaming to a client. This is an intermediate state that will automatically change to DISTRIBUTOR_STATE_CONNECTING once the required system resources are available. This constant can also be accessed from toi.consts.ToiMediaService.DISTRIBUTOR_STATE_IDLE. In ToiMediaService::DISTRIBUTOR_STATE_PAUSED the media distributor has a connection to a media stream source but media distribution to the destination is halted. On a command from the media destination, the media distributor will leave this state for one of the other distribution states ToiMediaService::DISTRIBUTOR_STATE_PLAYING, ToiMediaService::DISTRIBUTOR_STATE_FASTFORWARDING, or ToiMediaService::DISTRIBUTOR_STATE_REWINDING. If an error occurs with the stream severe enough for the media distributor to determine it cannot continue media distribution, the media distributor will go to ToiMediaService::DISTRIBUTOR_STATE_FAILED. This constant can also be accessed from toi.consts.ToiMediaService.DISTRIBUTOR_STATE_PAUSED. In ToiMediaService::DISTRIBUTOR_STATE_PLAYING the media distributor has a connection to a media destination and distributes the stream to the destination in normal pace. On a command from the media destination, the media distributor will leave this state for one of the other distribution states ToiMediaService::DISTRIBUTOR_STATE_PAUSED,ToiMediaService::DISTRIBUTOR_STATE_FASTFORWARDING, or ToiMediaService::DISTRIBUTOR_STATE_REWINDING. If an error occurs with the stream severe enough for the media distributor to determine it cannot continue distribution, the media distributor will go to ToiMediaService::DISTRIBUTOR_STATE_FAILED. This constant can also be accessed from toi.consts.ToiMediaService.DISTRIBUTOR_STATE_PLAYING. In ToiMediaService::DISTRIBUTOR_STATE_REWINDING the media distributor has a connection to a media destination and distributes the stream to that destination in reverse direction at a pace above normal playback. For streams on which this operation cannot be performed, this state is not available. On a command from the media destination, the media distributor will leave this state for one of the other media distributor states. ToiMediaService::DISTRIBUTOR_STATE_PLAYING, ToiMediaService::DISTRIBUTOR_STATE_PAUSED, or ToiMediaService::DISTRIBUTOR_STATE_FASTFORWARDING. If an error occurs with the stream severe enough for the media distributor to determine it cannot continue distribution, the media distributor will go to ToiMediaService::DISTRIBUTOR_STATE_FAILED. This constant can also be accessed from toi.consts.ToiMediaService.DISTRIBUTOR_STATE_REWINDING.
This is an Event identifier for ToiMediaDistributorStatusChangedEvent. This constant can also be accessed from toi.consts.ToiMediaService.ON_DISTRIBUTOR_STATUS_CHANGED.
This is an Event identifier for ToiMediaPlayerStatusChangedEvent. This constant can also be accessed from toi.consts.ToiMediaService.ON_PLAYER_STATUS_CHANGED.
This is an Event identifier for ToiMediaRecorderStatusChangedEvent. This constant can also be accessed from toi.consts.ToiMediaService.ON_RECORDER_STATUS_CHANGED.
This is an Event identifier for ToiMediaSessionStateChangedEvent. This constant can also be accessed from toi.consts.ToiMediaService.ON_SESSION_STATE_CHANGED.
This is an Event identifier for ToiMediaSessionStreamInfoChangedEvent. This constant can also be accessed from toi.consts.ToiMediaService.ON_SESSION_STREAM_INFO_CHANGED.
Main Player type. This constant can also be accessed from toi.consts.ToiMediaService.PLAYER_MAIN.
Picture-In-Picture Player type. This constant can also be accessed from toi.consts.ToiMediaService.PLAYER_PIP.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_COMMAND_CLOSE.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_COMMAND_CONSUME.
State change caused by a fast forward command This constant can also be accessed from toi.consts.ToiMediaService.REASON_COMMAND_FASTFORWARD.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_COMMAND_OPEN.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_COMMAND_PAUSE.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_COMMAND_PLAY.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_COMMAND_PLAYFROMPOSITION.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_COMMAND_RECORD.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_COMMAND_REWIND.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_ERROR_COMMAND_NOT_SUPPORTED.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_ERROR_CONNECTION_FAILED.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_ERROR_DISK_FULL.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_ERROR_DISK_OVERHEATED.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_ERROR_HOST_UNREACHABLE.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_ERROR_INVALID_DISKASSET.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_ERROR_INVALID_PRECONDITION.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_ERROR_LOWLEVEL_IO_FAILURE.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_ERROR_NO_EXTERNAL_INPUT_SIGNAL.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_ERROR_PERMISSION_DENIED.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_ERROR_POSITION_INVALID.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_ERROR_STREAM_CLIENT.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_ERROR_UNEXISTING_RESOURCE.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_ERROR_UNSUPPORTED_DISKASSET_VERSION.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_POSITION_END.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_POSITION_START.
State change caused by a timeshift buffer discard command This constant can also be accessed from toi.consts.ToiMediaService.REASON_TIMESHIFT_BUFFER_DISCARDED.
State change caused by buffer full This constant can also be accessed from toi.consts.ToiMediaService.REASON_TIMESHIFT_BUFFER_FULL.
State change caused by player opened timeshift buffer This constant can also be accessed from toi.consts.ToiMediaService.REASON_TIMESHIFT_BUFFER_OPEN.
State change caused by a timeshift buffer redirection command This constant can also be accessed from toi.consts.ToiMediaService.REASON_TIMESHIFT_BUFFER_REDIRECTED.
This constant can also be accessed from toi.consts.ToiMediaService.REASON_UNKNOWN. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||