The ToiMediaPlayerBase interface is the base interface for player instances. It contains only read-only methods and no control functionality.
import "ToiMediaPlayerBase.idl";
typedef long ToiMediaPlayerBase::TToiActiveFormatDescriptor |
Active format descriptor used to identify the active video format provided in the ToiMediaPlayerBaseVideoStreamInfo structure.
typedef long ToiMediaPlayerBase::TToiAspectRatio |
Aspect ratio identifier used to identify the video aspect ratio provided in the ToiMediaPlayerBaseVideoStreamInfo structure.
typedef long ToiMediaPlayerBase::TToiAudioAudienceType |
Audio type identifier used to identify the audio type provided in the ToiMediaPlayerBaseAudioStreamInfo structure.
typedef long ToiMediaPlayerBase::TToiAudioChannelFormat |
The audio channel format specifies the number of channels and desired speaker setup.
typedef long ToiMediaPlayerBase::TToiAudioChannelMode |
The audio channel mode specifies audio channel to speaker mappings.
typedef sequence< ToiMediaPlayerBaseComponentEntry > ToiMediaPlayerBase::TToiComponentSequence |
List of media component entries
typedef long ToiMediaPlayerBase::TToiComponentType |
Media component identifier types used to set and get information about media components of a session.
typedef long ToiMediaPlayerBase::TToiErrorSource |
Enumeration of various sources that can cause an OnError event to occur. Typically, this can be a streamer element or similar low-level component.
typedef sequence< long > ToiMediaPlayerBase::TToiPaceSequence |
typedef long ToiMediaPlayerBase::TToiReceiveDmfMode |
Receive DMF mode used for ARIB CC/CS
typedef long ToiMediaPlayerBase::TToiRecordDmfMode |
Receive DMF mode used for ARIB CC/CS
typedef long ToiMediaPlayerBase::TToiState |
Enumeration of media player states.
typedef long ToiMediaPlayerBase::TToiSubtitleFormat |
Subtitle format identifier used to identify the subtitle format provided in the ToiMediaPlayerBaseSubtitleStreamInfo structure.
typedef long ToiMediaPlayerBase::TToiSubtitleType |
Subtitle type identifier used to identify the subtitle type provided in the ToiMediaPlayerBaseSubtitleStreamInfo structure.
typedef long ToiMediaPlayerBase::TToiTimeshiftState |
State identifier used to identify the media player timeshift state.
void ToiEventTarget::addEventListener | ( | in long | type, | |
in ToiEventListener | listener | |||
) | raises (TToiInvalidArgumentException) [inherited] |
This method registers an event listener for a specific event. Multiple listeners can be added for the same event. Events are broadcast to all registered listeners.
type | The event type of the event to subscribe to. | |
listener | The JavaScript function that will receive events. |
TInvalidArgumentException | Raised if the event type is not supported by this object or if the listener is not a valid JavaScript function. This exception is also raised if the application calls addEventListener with the same combination of type and listener twice. |
TToiComponentSequence ToiMediaPlayerBase::getActiveComponents | ( | ) | raises (TToiSessionViolationException, TToiUnavailableException) |
This function returns the selected media components currently selected.
components | The media component entries currently selected. |
TToiSessionViolationException | If the player is in STATE_IDLE a session violation exception is raised. | |
TToiUnavailableException | Raised if the player is temporarily unavailable due to platform resource management. |
ToiMediaPlayerBaseAudioStreamInfo ToiMediaPlayerBase::getAudioStreamInfo | ( | in ToiMediaPlayerBaseComponentEntry | mediaComponent | ) | raises (TToiSessionViolationException, TToiInvalidArgumentException, TToiUnavailableException) |
Returns information about a specified audio stream in the current media stream multiplex in the form of an audio stream info structure.
mediaComponent | The media component entry for which the stream info has to be retrieved. |
streamInfo | Information about the specified audio stream. |
TToiSessionViolationException | If the player is in STATE_IDLE a session violation exception is raised. | |
TToiInvalidArgumentException | If the mediaComponent given as argument does not identify an audio stream in the current stream multiplex, an invalid argument exception is raised. | |
TToiUnavailableException | TToiUnavailableException is raised if the player is temporarily unavailable due to platform resource management. |
long ToiMediaPlayerBase::getCapabilities | ( | ) | raises (TToiSessionViolationException, TToiUnavailableException) |
Returns the capabilities present for the current session.
capabilityMask | A bit mask describing the capabilities of the current session. The mask can include the following capabilities:
|
TToiSessionViolationException | If the player is in STATE_IDLE a session violation exception is raised. | |
TToiUnavailableException | TToiUnavailableException is raised if the player is temporarily unavailable due to platform resource management. |
ToiMediaPlayerBaseError ToiMediaPlayerBase::getError | ( | ) |
Returns the last error. This is typically called when state is changed to STATE_FAILED. The result is undefined if no error has occurred.
error | The error |
long ToiMediaPlayerBase::getPace | ( | ) | raises (TToiSessionViolationException, TToiOperationNotSupportedException, TToiUnavailableException) |
Returns the current pace that the media stream is played with.
pace | The pace at which the position changes, given as a multiplier of normal playback times 1000. If the stream is paused the pace is zero. When the stream is played at normal speed the pace is 1000. In STATE_FASTFORWARDING the pace is generally above 1000, and in STATE_REWINDING generally below -1000. For example, if the stream is rewinded at a pace three times normal playback, the pace is -3000. |
TToiSessionViolationException | If the player is in STATE_IDLE a session violation exception is raised. | |
TToiOperationNotSupportedException | If the session lacks the capability to get position, the operation not supported exception is raised. | |
TToiUnavailableException | TToiUnavailableException is raised if the player is temporarily unavailable due to platform resource management. |
string ToiMediaPlayerBase::getParameter | ( | in string | name | ) | raises (TToiInvalidArgumentException, TToiUnavailableException) |
Get the current value of a parameter.
name | Name of the requested parameter. |
value | The current value of the parameter. |
TToiInvalidArgumentException | The parameter name is invalid or not recognized. | |
TToiUnavailableException | Raised if the player is temporarily unavailable due to platform resource management. |
long ToiMediaPlayerBase::getPosition | ( | ) | raises (TToiSessionViolationException, TToiOperationNotSupportedException, TToiUnavailableException) |
Returns the current position in the media stream.
position | The current position in milliseconds. If asset start is 0, relative position from start is equal to current position. Otherwise, relative position from start is current position - asset start. |
TToiSessionViolationException | If the player is in STATE_IDLE a session violation exception is raised. | |
TToiOperationNotSupportedException | If the session lacks the capability to get position, the operation not supported exception is raised. | |
TToiUnavailableException | TToiUnavailableException is raised if the player is temporarily unavailable due to platform resource management. |
ToiMediaSession::TToiSessionId ToiMediaPlayerBase::getSessionId | ( | ) | raises (TToiSessionViolationException) |
Returns the session identifier. This identifier can be used to open a session object with (C++) ToiMediaService::OpenSession().
id | The session identifier. |
TToiSessionViolationException | If the player is in STATE_IDLE a session violation exception is raised. |
TToiState ToiMediaPlayerBase::getState | ( | ) |
Returns the current state of the media player instance.
state | The current player state. |
ToiMediaPlayerBaseStreamInfo ToiMediaPlayerBase::getStreamInfo | ( | ) | raises (TToiSessionViolationException, TToiUnavailableException) |
Returns information about the current stream in form of a stream info structure. The lists of audio and video streams provided as parts of this information can be used for further exploration using the ToiMediaPlayerBase::getAudioStreamInfo() and ToiMediaPlayerBase::getVideoStreamInfo() functions, respectively.
streamInfo | Information about the current stream. |
TToiSessionViolationException | If the player is in STATE_IDLE a session violation exception is raised. | |
TToiUnavailableException | TToiUnavailableException is raised if the player is temporarily unavailable due to platform resource management. |
ToiMediaPlayerBaseSubtitleStreamInfo ToiMediaPlayerBase::getSubtitleStreamInfo | ( | in ToiMediaPlayerBaseComponentEntry | mediaComponent | ) | raises (TToiSessionViolationException, TToiInvalidArgumentException, TToiUnavailableException) |
Returns information about a specified subtitle stream in the current media stream multiplex in the form of a subtitle stream info structure.
mediaComponent | The media component entry for which the stream info has to be retrieved. |
streamInfo | Information about the specified subtitle stream. |
TToiSessionViolationException | If the player is in STATE_IDLE a session violation exception is raised. | |
TToiInvalidArgumentException | If the streamId given as argument does not identify a subtitle stream in the current stream multiplex, an invalid argument exception is raised. | |
TToiUnavailableException | TToiUnavailableException is raised if the player is temporarily unavailable due to platform resource management. |
ToiMediaPlayerBaseTeletextStreamInfo ToiMediaPlayerBase::getTeletextStreamInfo | ( | in ToiMediaPlayerBaseComponentEntry | mediaComponent | ) | raises (TToiSessionViolationException, TToiInvalidArgumentException, TToiUnavailableException) |
Returns information about a specified teletext stream in the current media stream multiplex in the form of a teletext stream info structure.
mediaComponent | The media component entry for which the stream info has to be retrieved. |
streamInfo | Information about the specified teletext stream. |
TToiSessionViolationException | If the player is in STATE_IDLE a session violation exception is raised. | |
TToiInvalidArgumentException | If the mediaComponent given as argument does not identify a teletext stream in the current stream multiplex, an invalid argument exception is raised. | |
TToiUnavailableException | TToiUnavailableException is raised if the player is temporarily unavailable due to platform resource management. |
ToiMediaPlayerBaseError ToiMediaPlayerBase::getTimeshiftError | ( | ) |
Returns the last timeshift error. This is typically called after a state change to TIMESHIFT_STATE_BUFFERING_FAILED. The result is undefined if no error has occurred.
timeshiftError | The error. |
ToiMediaPlayerBaseTimeshiftInfo ToiMediaPlayerBase::getTimeshiftInfo | ( | ) | raises (TToiSessionViolationException, TToiUnavailableException) |
Retrieve information about the current timeshift operation.
timeshiftInfo | Information about the current timeshift operation. |
TToiSessionViolationException | If the player is in STATE_IDLE a session violation exception is raised. | |
TToiUnavailableException | Raised if the player is temporarily unavailable due to platform resource management. |
string ToiMediaPlayerBase::getUrl | ( | ) | raises (TToiSessionViolationException) |
Returns the URL for the media stream.
url | The URL for the media stream. |
TToiSessionViolationException | If the player is in STATE_IDLE a session violation exception is raised. |
ToiMediaPlayerBaseVideoStreamInfo ToiMediaPlayerBase::getVideoStreamInfo | ( | in ToiMediaPlayerBaseComponentEntry | mediaComponent | ) | raises (TToiSessionViolationException, TToiInvalidArgumentException, TToiUnavailableException) |
Returns information about a specified video stream in the current media stream multiplex in the form of a video stream info structure.
mediaComponent | The media component entry for which the stream info has to be retrieved. |
streamInfo | Information about the specified video stream. |
TToiSessionViolationException | If the player is in STATE_IDLE a session violation exception is raised. | |
TToiInvalidArgumentException | If the mediaComponent given as argument does not identify a video stream in the current stream multiplex, an invalid argument exception is raised. | |
TToiUnavailableException | TToiUnavailableException is raised if the player is temporarily unavailable due to platform resource management. |
boolean ToiMediaPlayerBase::isTimeshiftPlayback | ( | ) | raises (TToiSessionViolationException, TToiUnavailableException) |
Returns true if the player is playing from the timeshift buffer.
timeshiftPlayback | True if the player is playing from the timeshift buffer, otherwise false. |
TToiSessionViolationException | If the player is in STATE_IDLE a session violation exception is raised. | |
TToiUnavailableException | Raised if the player is temporarily unavailable due to platform resource management. |
void ToiMediaPlayerBase::releaseInstance | ( | ) |
This function releases the resources used by this instance. When this function returns all observers has also been released.
void ToiEventTarget::removeEventListener | ( | in long | type, | |
in ToiEventListener | listener | |||
) | raises (TToiInvalidArgumentException) [inherited] |
This method removes an event listener for a specific event.
type | The event type of the event to remove the listener from. | |
listener | The JavaScript function that was previously added as an event listener. |
TInvalidArgumentException | Raised if the event type is not supported by this object or if the listener is not a valid JavaScript function. This exception is also raised if the listener had not previously been added. |
void ToiMediaPlayerBase::subscribeParameter | ( | in ToiEventListener | eventListener, | |
in string | name | |||
) | raises (TToiInvalidArgumentException, TToiUnavailableException) |
This function makes the application subscribe to updates of a specific named parameter. When the subscription is made there will be an immediate call to ToiMediaPlayerParameterChangedEvent if there is a value available.
eventListener | ToiEventListener | |
name | The name of the parameter for which changes the application wants to subscribe to. |
TToiInvalidArgumentException | The parameter name is invalid or not recognized. | |
TToiUnavailableException | Raised if the player is temporarily unavailable due to platform resource management. |
void ToiMediaPlayerBase::unsubscribeParameter | ( | in ToiEventListener | eventListener, | |
in string | name | |||
) | raises (TToiInvalidArgumentException, TToiUnavailableException) |
This function undoes the effect of a previous call to ToiMediaPlayerBase::subscribeParameter().
eventListener | ToiEventListener | |
name | The name of the parameter that the application is no longer interested in. |
TToiInvalidArgumentException | The parameter name is invalid or not recognized. | |
TToiUnavailableException | Raised if the player is temporarily unavailable due to platform resource management. |
The active format descriptor is 14:9 centre.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ACTIVE_FORMAT_14_9_CENTRE.
The active format descriptor is 14:9 top.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ACTIVE_FORMAT_14_9_TOP.
The active format descriptor is 16:9 centre.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ACTIVE_FORMAT_16_9_CENTRE.
const TToiActiveFormatDescriptor ToiMediaPlayerBase::ACTIVE_FORMAT_16_9_SHOOT_AND_PROTECT_14_9_CENTRE = 9 |
The active format descriptor is 16:9 with shoot and protect 14:9 centre.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ACTIVE_FORMAT_16_9_SHOOT_AND_PROTECT_14_9_CENTRE.
const TToiActiveFormatDescriptor ToiMediaPlayerBase::ACTIVE_FORMAT_16_9_SHOOT_AND_PROTECT_4_3_CENTRE = 10 |
The active format descriptor is 16:9 with shoot and protect 4:3 centre.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ACTIVE_FORMAT_16_9_SHOOT_AND_PROTECT_4_3_CENTRE.
The active format descriptor is 16:9 top.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ACTIVE_FORMAT_16_9_TOP.
The active format descriptor is 4:3 centre.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ACTIVE_FORMAT_4_3_CENTRE.
const TToiActiveFormatDescriptor ToiMediaPlayerBase::ACTIVE_FORMAT_4_3_SHOOT_AND_PROTECT_14_9_CENTRE = 8 |
The active format descriptor is 4:3 with shoot and protect 14:9 centre.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ACTIVE_FORMAT_4_3_SHOOT_AND_PROTECT_14_9_CENTRE.
The active format descriptor is > 16:9 centre.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ACTIVE_FORMAT_MORE_THAN_16_9_CENTRE.
The active format descriptor is same as coded.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ACTIVE_FORMAT_SAME_AS_CODED.
The active format descriptor is not known.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ACTIVE_FORMAT_UNKNOWN.
The aspect ratio is 16:9
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ASPECT_RATIO_16_9.
The aspect ratio is 4:3
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ASPECT_RATIO_4_3.
The aspect ratio is not known.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ASPECT_RATIO_UNKNOWN.
The audio is prepared for the hearing impaired.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_AUDIENCE_TYPE_HEARING_IMPAIRED.
The audio is prepared for normal audiance.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_AUDIENCE_TYPE_NORMAL.
The audience type of the audio is not known.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_AUDIENCE_TYPE_UNKNOWN.
The audio is prepared for the visually impaired.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_AUDIENCE_TYPE_VISUALLY_IMPAIRED.
Four audio channels. Three front and one back speakers.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_CHANNEL_FORMAT_3_FRONT_1_BACK.
Five audio channels. Three front and two back speakers.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_CHANNEL_FORMAT_3_FRONT_2_BACK.
Five audio channels. Three front and two back speakers. One low frequency effects channel (LFE). One subwoofer speaker.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_CHANNEL_FORMAT_3_FRONT_2_BACK_LFE.
Seven audio channels. Three front, two side and two back speakers. One low frequency effects channel (LFE). One subwoofer speaker.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_CHANNEL_FORMAT_3_FRONT_2_SIDE_2_BACK_LFE.
Two content separate audio channels. Either one or two speakers.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_CHANNEL_FORMAT_DUAL_MONO.
One audio channel. One speaker.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_CHANNEL_FORMAT_SINGLE_MONO.
Two audio channels. Two front speakers.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_CHANNEL_FORMAT_STEREO.
The audio channel format is not known.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_CHANNEL_FORMAT_UNKNOWN.
The dual mono mode where the left channel is sent to both left and right front speaker outputs.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_CHANNEL_MODE_DUAL_MONO_LEFT_ONLY.
The dual mono mode where the left and right channels are mixed and sent to both left and right front speaker outputs
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_CHANNEL_MODE_DUAL_MONO_MIXED.
The dual mono mode where the right channel is sent to both left and right front speaker outputs.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_CHANNEL_MODE_DUAL_MONO_RIGHT_ONLY.
The dual mono mode where the left channel is sent to the left front speaker output and the right channel is sent to the right front speaker output
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_CHANNEL_MODE_DUAL_MONO_STEREO.
The normal mode where each channel is sent to its speaker output.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.AUDIO_CHANNEL_MODE_NORMAL.
const long ToiMediaPlayerBase::CAPABILITY_FASTFORWARD = 4 |
When this bit is set the session accepts the ToiMediaPlayer::Play([pace > 0]) command.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.CAPABILITY_FASTFORWARD.
const long ToiMediaPlayerBase::CAPABILITY_FREEZE = 32 |
When this bit is set the session accepts the ToiMediaPlayer::Play(PACE_PAUSE) command. Freeze is similar to pause, except that when resuming a frozen session it will continue from the current live position.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.CAPABILITY_FREEZE.
const long ToiMediaPlayerBase::CAPABILITY_GETPOSITION = 8 |
When this bit is set the session provides a position value which the client may read with ToiMediaPlayerBase::getPosition() and similar commands.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.CAPABILITY_GETPOSITION.
const long ToiMediaPlayerBase::CAPABILITY_PAUSE = 1 |
When this bit is set the session accepts the ToiMediaPlayer::Play(PACE_PAUSE) command. When a paused session is resumed it will continue playing from the position where the pause occured. This is similar to freeze.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.CAPABILITY_PAUSE.
const long ToiMediaPlayerBase::CAPABILITY_REWIND = 2 |
When this bit is set the session accepts the ToiMediaPlayer::Play([pace < 0]) command.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.CAPABILITY_REWIND.
const long ToiMediaPlayerBase::CAPABILITY_SETPOSITION = 16 |
When this bit is set the session accepts the position to be set ToiMediaPlayer::playFromPosition().
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.CAPABILITY_SETPOSITION.
const long ToiMediaPlayerBase::CAPABILITY_TIMESHIFT = 64 |
When this bit is set the session can perform timeshift buffering.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.CAPABILITY_TIMESHIFT.
Audio components have information of type ToiMediaPlayerBaseAudioStreamInfo.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.COMPONENT_AUDIO.
Denotes a regular subtitling component.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.COMPONENT_SUBTITLE.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.COMPONENT_SUBTITLE_CAPTION.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.COMPONENT_SUBTITLE_SUPERIMPOSE.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.COMPONENT_TELETEXT_VBI.
Video components have information of type ToiMediaPlayerBaseVideoStreamInfo.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.COMPONENT_VIDEO.
const long ToiMediaPlayerBase::ON_ACTIVE_COMPONENT_CHANGED = 1704 |
This is an Event identifier for ToiMediaPlayerActiveComponentChangedEvent.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ON_ACTIVE_COMPONENT_CHANGED.
const long ToiMediaPlayerBase::ON_CAPABILITIES_CHANGED = 1707 |
This is an Event identifier for ToiMediaPlayerCapabilitiesChangedEvent.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ON_CAPABILITIES_CHANGED.
const long ToiMediaPlayerBase::ON_DATA_AVAILABLE = 1701 |
This is an Event identifier for ToiMediaPlayerDataAvailableEvent.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ON_DATA_AVAILABLE.
const long ToiMediaPlayerBase::ON_PARAMETER_CHANGED = 1705 |
This is an Event identifier for ToiMediaPlayerParameterChangedEvent.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ON_PARAMETER_CHANGED.
const long ToiMediaPlayerBase::ON_POSITION_CHANGED = 1702 |
This is an Event identifier for ToiMediaPlayerPositionChangedEvent.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ON_POSITION_CHANGED.
const long ToiMediaPlayerBase::ON_STATE_CHANGED = 1700 |
This is an Event identifier for ToiMediaPlayerStateChangedEvent.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ON_STATE_CHANGED.
const long ToiMediaPlayerBase::ON_STREAM_INFO_CHANGED = 1703 |
This is an Event identifier for ToiMediaPlayerStreamInfoChangedEvent.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ON_STREAM_INFO_CHANGED.
const long ToiMediaPlayerBase::ON_TIMESHIFT_STATE_CHANGED = 1706 |
This is an Event identifier for ToiMediaPlayerTimeshiftStateChangedEvent.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.ON_TIMESHIFT_STATE_CHANGED.
const long ToiMediaPlayerBase::PACE_FASTFORWARD = 5000 |
Predefined argument value for ToiMediaPlayer::play(). Indicates that the player should play with a normal fast forward speed.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.PACE_FASTFORWARD.
const long ToiMediaPlayerBase::PACE_PAUSE = 0 |
Predefined argument value for ToiMediaPlayer::play(). Indicates that the player should be paused.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.PACE_PAUSE.
const long ToiMediaPlayerBase::PACE_PLAY = 1000 |
Predefined argument value for ToiMediaPlayer::play(). Indicates that the player should play with normal speed.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.PACE_PLAY.
const long ToiMediaPlayerBase::PACE_REWIND = -5000 |
Predefined argument value for ToiMediaPlayer::play(). Indicates that the player should play with a normal rewind speed.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.PACE_REWIND.
const long ToiMediaPlayerBase::POSITION_LIVE = -1616928864 |
Predefined argument value for ToiMediaPlayer::playFromPosition(). Indicates that the player should stop playing from the timeshift buffer and instead start playback of the live stream.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.POSITION_LIVE.
Automatic mode.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.RECEIVE_DMF_MODE_AUTO.
Non-automatic mode.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.RECEIVE_DMF_MODE_NON_AUTO.
Select mode.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.RECEIVE_DMF_MODE_SELECT.
Special mode.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.RECEIVE_DMF_MODE_SPECIAL.
Automatic mode.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.RECORD_DMF_MODE_AUTO.
Non-automatic mode.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.RECORD_DMF_MODE_NON_AUTO.
Select mode.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.RECORD_DMF_MODE_SELECT.
SOURCE_BITBAND - A BitBand element has failed for some reason.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.SOURCE_BITBAND.
SOURCE_INTERNAL - An internal failure occured before an error code could be retrieved.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.SOURCE_INTERNAL.
SOURCE_UNKNOWN - An error of unknown type has occurred.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.SOURCE_UNKNOWN.
In STATE_CONNECTING the media player has an active session and is in the process of establishing a connection to a media stream source. The media player will leave this state automatically and enter STATE_PAUSED when it has successfully established the connection to the stream source. If the media player decides it cannot connect, it will enter STATE_FAILED instead. If the application is not interrested in knowing when the player has connected, it may call ToiMediaPlayer::play() to set the player in STATE_PLAYING directly. The application may also end the session by calling ToiMediaPlayer::close(), which makes the player go to STATE_IDLE.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.STATE_CONNECTING.
const TToiState ToiMediaPlayerBase::STATE_FAILED = 6 |
In STATE_FAILED the media player may or may not have a connection to a media source but the process of getting the stream from that source has failed in some fatal way. The media player will only leave STATE_FAILED on a call by the application to ToiMediaPlayer::close().
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.STATE_FAILED.
In STATE_FASTFORWARDING the media player has a connection to a media source and plays the stream from that source 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 application, the player will leave this state for one of the other playback states STATE_PLAYING, STATE_PAUSED, or STATE_REWINDING. The application may also end the session by calling ToiMediaPlayer::close(), which makes the player go to STATE_IDLE. If an error occurs with the stream severe enough for the player to determine it cannot continue playback, the player will go to STATE_FAILED.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.STATE_FASTFORWARDING.
const TToiState ToiMediaPlayerBase::STATE_IDLE = 0 |
In STATE_IDLE there is no active session. The media player does not handle a stream, and consequently has no connection to a media stream source. All functions requiring a session will raise a TToiSessionViolationException in STATE_IDLE. The media player will only leave STATE_IDLE on a successful call to ToiMediaPlayer::open().
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.STATE_IDLE.
const TToiState ToiMediaPlayerBase::STATE_PAUSED = 2 |
In STATE_PAUSED the media player has a connection to a media source but playback is halted. On a command from the application, the player will leave this state for one of the other playback states STATE_PLAYING, STATE_FASTFORWARDING, or STATE_REWINDING. The application may also end the session by calling ToiMediaPlayer::close(), which makes the player go to STATE_IDLE. If an error occurs with the stream severe enough for the player to determine it cannot continue playback, the player will go to STATE_FAILED.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.STATE_PAUSED.
const TToiState ToiMediaPlayerBase::STATE_PLAYING = 3 |
In STATE_PLAYING the media player has a connection to a media source and plays the stream from that source in normal pace. On a command from the application, the player will leave this state for one of the other playback states STATE_PAUSED, STATE_FASTFORWARDING, or STATE_REWINDING. The application may also end the session by calling ToiMediaPlayer::close(), which makes the player go to STATE_IDLE. If an error occurs with the stream severe enough for the player to determine it cannot continue playback, the player will go to STATE_FAILED.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.STATE_PLAYING.
const TToiState ToiMediaPlayerBase::STATE_REWINDING = 5 |
In STATE_REWINDING the media player has a connection to a media source and plays the stream from that source in backward 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 application, the player will leave this state for one of the other playback states STATE_PLAYING, STATE_PAUSED, or STATE_FASTFORWARDING. The application may also end the session by calling ToiMediaPlayer::close(), which makes the player go to STATE_IDLE. If an error occurs with the stream severe enough for the player to determine it cannot continue playback, the player will go to STATE_FAILED.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.STATE_REWINDING.
The subtitles are in ARIB format.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.SUBTITLE_ARIB.
The subtitles are in DVB format.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.SUBTITLE_DVB.
The subtitles are in DVD format.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.SUBTITLE_DVD.
The subtitles are designed for the hearing impaired.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.SUBTITLE_HEARING_IMPAIRED.
The subtitles are designed for normal audience.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.SUBTITLE_NORMAL.
The subtitles are in Teletext format.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.SUBTITLE_TELETEXT.
The type of subtitles is not known.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.SUBTITLE_UNKNOWN.
The subtitles are in XSUB or XSUB plus format.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.SUBTITLE_XSUB.
In TIMESHIFT_STATE_BUFFERING the media player is buffering the current media source to the timeshift buffer. In this state the capabilities change to include trick play capabilities such as pause, fast forward and rewind.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.TIMESHIFT_STATE_BUFFERING.
In TIMESHIFT_STATE_BUFFERING_FAILED the timeshift buffering has failed for some reason. The reason can be retrieved by calling ToiMediaPlayerBase::getTimeshiftError(). The media player will only leave TIMESHIFT_STATE_BUFFERING_FAILED on a call by the application to ToiMediaPlayer::discardTimeshiftBuffer().
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.TIMESHIFT_STATE_BUFFERING_FAILED.
In TIMESHIFT_STATE_INACTIVE the timeshift operation is not enabled. The capacity of the buffer is unknown and the capabilities are the same as for the current media source, e.g. if you play a multicasted stream, trick play capabilities such as pause, fast forward and rewind are not allowed.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.TIMESHIFT_STATE_INACTIVE.
In TIMESHIFT_STATE_STOPPED the buffering has been stopped either due to an explicit call to ToiMediaPlayer::stopTimeshiftBuffering() or due to full buffer.
This constant can also be accessed from toi.consts.ToiMediaPlayerBase.TIMESHIFT_STATE_STOPPED.