MediaPlayer
#include <bb/multimedia/MediaPlayer>
To link against this class, add the following line to your .pro file: LIBS += -lbbmultimedia
The MediaPlayer class provides the ability to control media playback.
This class is used by applications to control the playback of media sources. Creating multiple instances of this class allows you to play multiple media sources at the same time.
A playback example in C++:
MediaPlayer mp(this);
mp.setSourceUrl("/path/to/media.mp3");
On user events...
void onPlay() {
mp.play(); // automatically prepares
}
void onStop() {
mp.stop();
}
A playback example in QML:
import bb.multimedia 1.0
...
attachedObjects: [
MediaPlayer {
id: player
sourceUrl: "/path/to/media.mp4"
videoOutput: VideoOutput.PrimaryDisplay
windowId: videoSurface.windowId // name of the window to create
}
]
ForeignWindowControl {
id: videoSurface
windowId: "myVideoSurface"
id: videoSurface
updatedProperties: WindowProperty.Size | WindowProperty.Position | WindowProperty.Visible
visible: boundToWindow
preferredWidth: 1280
preferredHeight: 768
}
...
onMyMediaPause: {
if (player.pause() != MediaError.MediaErrorNone) {
// error handing
}
}
...
onMyMediaPlay: {
videoSurface.visible = true;
if (player.play() != MediaError.MediaErrorNone) {
// error handing
}
}
...
onMyMediaStop: {
videoSurface.visible = false;
if (player.stop() != MediaError.MediaErrorNone) {
// error handing
}
}
The application does not need any permission to play audio from its sandbox but would need the access_shared permission in order to access the shared content areas on the device.
BlackBerry 10.0.0
Properties Index
| QVariant | audioManagerHandle |
| bb::multimedia::AudioOutput::Type | audioOutput |
| bool | autoPause |
| bb::multimedia::BufferStatus::Type | bufferStatus [read-only] |
| QVariant | duration [read-only] |
| bb::multimedia::MediaError::Type | mediaError [read-only] |
| bb::multimedia::MediaState::Type | mediaState [read-only] |
| QVariantMap | metaData [read-only] |
| QVariant | position [read-only] |
| bb::multimedia::RepeatMode::Type | repeatMode |
| bool | seekable [read-only] |
| QUrl | sourceUrl |
| double | speed |
| QVariant | statusInterval |
| QVariant | track [read-only] |
| QVariant | trackCount [read-only] |
| QSize | videoDimensions [read-only] |
| bb::multimedia::VideoOutput::Type | videoOutput |
| QString | windowGroupId |
| QString | windowId |
Public Functions Index
| MediaPlayer (QObject *parent=0) | |
| virtual | ~MediaPlayer () |
| unsigned int | audioManagerHandle () const |
| AudioOutput::Type | audioOutput () const |
| bool | autoPause () const |
| bb::multimedia::BufferStatus::Type | bufferStatus () const |
| unsigned int | duration () const |
| bool | isSeekable () const |
| MediaError::Type | mediaError () const |
| MediaState::Type | mediaState () const |
| QVariantMap | metaData () const |
| unsigned int | position () const |
| RepeatMode::Type | repeatMode () const |
| MediaError::Type | setAudioManagerHandle (unsigned int audioManagerHandle) |
| QUrl | sourceUrl () const |
| double | speed () const |
| unsigned int | statusInterval () const |
| unsigned int | track () const |
| unsigned int | trackCount () const |
| QSize | videoDimensions () const |
| VideoOutput::Type | videoOutput () const |
| QString | windowGroupId () const |
| QString | windowId () const |
Public Slots Index
| MediaError::Type | nextTrack () |
| MediaError::Type | pause () |
| MediaError::Type | play () |
| MediaError::Type | prepare () |
| MediaError::Type | previousTrack () |
| MediaError::Type | reset () |
| MediaError::Type | seek (unsigned int track, unsigned int position) |
| MediaError::Type | seekTime (unsigned int position) |
| MediaError::Type | seekPercent (double percentage) |
| MediaError::Type | seekTrack (unsigned int track) |
| MediaError::Type | setAudioOutput (AudioOutput::Type audioOutput) |
| MediaError::Type | setAutoPause (bool autoPause) |
| MediaError::Type | setRepeatMode (RepeatMode::Type repeatMode) |
| MediaError::Type | setSourceUrl (const QUrl &url) |
| MediaError::Type | setSpeed (double speed) |
| MediaError::Type | setStatusInterval (unsigned int statusInterval) |
| MediaError::Type | setVideoOutput (VideoOutput::Type videoOutput) |
| MediaError::Type | setVideoSourceRect (int x, int y, unsigned int width, unsigned int height) |
| void | setWindowGroupId (const QString &windowGroupId) |
| void | setWindowId (const QString &windowId) |
| MediaError::Type | stop () |
Signals Index
| void | audioManagerHandleChanged (unsigned int audioManagerHandle) |
| void | audioOutputChanged (bb::multimedia::AudioOutput::Type audioOutput) |
| void | autoPauseChanged (bool autoPause) |
| void | buffering (double percentage) |
| void | bufferStatusChanged (bb::multimedia::BufferStatus::Type bufferStatus) |
| void | durationChanged (unsigned int duration) |
| void | error (bb::multimedia::MediaError::Type mediaError, unsigned int position) |
| void | mediaStateChanged (bb::multimedia::MediaState::Type mediaState) |
| void | metaDataChanged (const QVariantMap &metaData) |
| void | playbackCompleted () |
| void | positionChanged (unsigned int position) |
| void | repeatModeChanged (bb::multimedia::RepeatMode::Type repeatMode) |
| void | seekableChanged (bool seekable) |
| void | sourceUrlChanged (const QUrl &sourceUrl) |
| void | speedChanged (double speed) |
| void | statusIntervalChanged (unsigned int statusInterval) |
| void | trackChanged (unsigned int track) |
| void | trackCountChanged (unsigned int trackCount) |
| void | videoDimensionsChanged (const QSize &videoDimensions) |
| void | videoOutputChanged (bb::multimedia::VideoOutput::Type videoOutput) |
| void | windowGroupIdChanged (const QString &windowGroupId) |
| void | windowIdChanged (const QString &windowId) |
Properties
bb::multimedia::AudioOutput::Type
Represents the audio output for the media source.
The audio output can be none or default.
BlackBerry 10.0.0
bool
Represents the auto pause status of the player.
BlackBerry 10.0.0
bb::multimedia::BufferStatus::Type
Represents the current buffer status.
Buffer status can be idle, buffering, or playing.
BlackBerry 10.0.0
QVariant
Represents the length of time of the current track, when available.
BlackBerry 10.0.0
bb::multimedia::MediaError::Type
Represents the last runtime error code notified from the error() signal.
BlackBerry 10.0.0
bb::multimedia::RepeatMode::Type
Represents the current repeat mode for the player.
The repeat mode of the player can be none, track, or all.
BlackBerry 10.0.0
bool
Represents the current seek status for the current track.
BlackBerry 10.0.0
QUrl
Represents the URL of the current media source.
This media source is guaranteed to be valid when the player has successfully acquired the necessary resources to play it. Otherwise, the acquisition of media resources by the player will fail.
BlackBerry 10.0.0
double
Represents the playback speed of the track that is currently playing.
All speed values are relative to a value of 1.0, which is considered normal playback speed. A value of zero means the player is paused. Positive speed values play forward and negative speed values play in reverse.
BlackBerry 10.0.0
QVariant
Represents the requested amount of time in milliseconds between regular status updates.
Generally this setting is applied to position and buffering updates. If a track change occurs within the interval it is still signalled immediately.
BlackBerry 10.0.0
QVariant
Represents the current track number in the playlist.
The value of track is always 1 in the case of a single file playback.
BlackBerry 10.0.0
QSize
Represents the video height and width dimensions of the media source.
This value is available as soon as playback begins.
BlackBerry 10.0.0
bb::multimedia::VideoOutput::Type
Represents the video output device for the media source.
The video output device can be none, primary display, or secondary display.
BlackBerry 10.0.0
QString
Represents the screen window group id to use when creating the video surface.
BlackBerry 10.0.0
QString
Represents the screen window id to use when creating the video surface.
BlackBerry 10.0.0
Public Functions
MediaPlayer class constructor.
| Parameters | |
|---|---|
| parent |
An optional parameter to specify the parent of this QObject. |
BlackBerry 10.0.0
virtual
Destructor.
BlackBerry 10.0.0
unsigned int
Returns the handle of an externally managed audio manager.
Returns the handle of an externally managed audio manager or zero if managed internally.
BlackBerry 10.0.0
AudioOutput::Type
Returns the audio output used for audio playback.
The values for audio output can either be default or none.
Returns the current audio output.
BlackBerry 10.0.0
bool
Provides the auto pause status of the player.
When auto pause is enabled the platform will be allowed to automatically pause the player under some circumstances. In the case where playback is occuring over a headset, and the headset is removed, playback will be paused rather than continuing over the speaker.
Returns true if auto pause is enabled, and false otherwise.
BlackBerry 10.0.0
bb::multimedia::BufferStatus::Type
Returns the current buffer status.
The buffer status can be idle, buffering, or playing.
Returns the current buffer status.
BlackBerry 10.0.0
unsigned int
Provides the duration of a currently prepared track.
The duration of the current track is available once prepare() has been called, and the player has successfully acquired the resources to play the current track. The duration of the current track is no longer available when stop() has been called. In any other case, a duration of zero is returned.
Returns the duration in milliseconds of the current track, and zero otherwise.
BlackBerry 10.0.0
bool
Provides the seek status of the current track.
If playback for the current track has the ability to seek to an arbitrary location this method will return true. Otherwise tracks are not seekable by default. When the track is seekable the seekableChanged() signal is emitted.
Returns whether or not the track is seekable.
BlackBerry 10.0.0
MediaError::Type
Used to retrieve the last recording error.
If the error() signal has been fired this property will return the last error type, otherwise MediaError::None is returned. This property is automatically reset to MediaError::None when recording starts.
Returns the last playback media error.
BlackBerry 10.0.0
MediaState::Type
Used to determine the current media state.
If prepare() has not been called or the recording has been stopped MediaState::Unprepared will be returned. If actively recording MediaState::Started will be returned. If paused MediaState::Paused will be returned.
Returns the current media state.
BlackBerry 10.0.0
QVariantMap
Returns the metadata for the track that is currently playing.
BlackBerry 10.0.0
unsigned int
Provides the playback position of the current track.
The playback position of the current track changes while the player is playing, or after a successful call to the seekTime(), or seekPercent() methods. A value of zero is returned when the player has not yet acquired the resources to play the media source, or after it has been stopped by a call to the stop() method.
Returns the playback position in milliseconds of the current track.
BlackBerry 10.0.0
RepeatMode::Type
Retrieves the current playback repeat mode as set by a call from setRepeatMode().
Returns the current playback repeat mode.
BlackBerry 10.0.0
MediaError::Type
Sets the handle of an externally managed audio manager.
Changing this property while the player is prepared will cause the audio management to switch seamlessly to the new audio manager. The original owner of the audio manager handle is responsible for releasing it.
| Parameters | |
|---|---|
| audioManagerHandle |
The audio manager handle to use. |
Returns the last playback media error.
BlackBerry 10.0.0
QUrl
Retrieves the source URL for the player as set by a call from setSourceUrl().
Returns the source URL for the player.
BlackBerry 10.0.0
double
Retrieves the current playback speed as set by a call from setSpeed().
Returns the current playback speed, as described by setSpeed().
BlackBerry 10.0.0
unsigned int
statusInterval Represents the requested amount of time in milliseconds between regular status updates.
Generally this setting is applied to position and buffering updates. If a track change occurs within the interval it is still signalled immediately. By default the requested update status is 1000 milliseconds.
Return the current requested status interval in milliseconds, as described by setStatusInterval().
BlackBerry 10.0.0
unsigned int
Returns the current track in a playlist.
Single track playback will have a value of 1 otherwise the track number of the current track in the playlist is returned.
Return the current player track number.
BlackBerry 10.0.0
unsigned int
Retrieves the number of tracks available to the player.
This value can be used to specify a playlist file rather than a single track as the media source for the player. This method returns 1 when a single track is specified as the media source.
Returns the number of tracks available to the player.
BlackBerry 10.0.0
QSize
Retrieves the video dimensions for the current track when available.
Returns the video dimensions when available.
BlackBerry 10.0.0
VideoOutput::Type
Retrieves the video output of the screen used for video rendering.
The screen window is created during preparation if the videoOutput is set to either VideoOutput::PrimaryDisplay or VideoOutput::SecondaryDisplay. If the value for videoOutput is set to VideoOutput::None then the screen will be destroyed. The window id set using setWindowId is returned.
The current video output.
BlackBerry 10.0.0
QString
Retrieves the window group id of the video screen.
Returns the window group id of the screen used for video rendering. The screen window is created during preparation if the windowId property is set and the videoOutput is not VideoOutput::None. The window group id set using setWindowGroupId will be returned regardless of state.
BlackBerry 10.0.0
QString
Retrieves the window id of the video screen.
Returns the window id of the screen used for video rendering. The screen window is created during preparation if this property is set and the videoOutput is not VideoOutput::None. The window id set using setWindowId will be returned regardless of state.
BlackBerry 10.0.0
Public Slots
MediaError::Type
Moves playback to the next track in the playlist.
If the media source is a playlist this method will move to the next track. On success it will result in a trackChanged() signal.
If the media source is not a playlist then calling this method does nothing.
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Pauses a currently playing track.
This method is equivalent to calling setSpeed(0.0). On success a paused() signal will be emitted. Call play() or setSpeed() with a non-zero value to restart playback.
Calling this method while playback is already paused does nothing.
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Starts playback of a track.
This method will start playback of a track. The player will be prepared triggering a preparedChanged() signal if needed. If the player is paused it will be resumed. If the player is stopped it will restart from the beginning. Successful playback will emit a playing() signal.
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Acquires resources necessary for playback without playing the track.
Once all the resources have been acquired for playback a preparedChanged() signal will be emitted. This process will then move the player into the stopped state. The playback speed will be set to 1.0, regardless of any previous activity by the player.
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Moves playback to the previous track in the playlist.
If the media source is a playlist this method will move to the previous track. On success it will result in a trackChanged() signal.
If the media source is not a playlist then calling this method does nothing.
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Frees all resources previously acquired for playback.
Calling this method has no effect if the method is already in the unprepared state. Otherwise all acquired resources are freed stopping the player if needed and the state is moved to unprepared.
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Seeks to the track and position nearest to the given time.
This method will seek to the specified track and attempt to also seek to the given position. On success a trackChanged will be called if the track is different than the current track and positionChanged signal will be called with the new location.
| Parameters | |
|---|---|
| track |
The one based index of the track to seek to. |
| position |
The position in milliseconds to attempt to seek to. |
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Seeks to the position nearest to the given time.
This method will attempt to seek to the given position. On success a positionChanged signal will be called with the new location.
| Parameters | |
|---|---|
| position |
The position in milliseconds to attempt to seek to. |
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Seeks to the position nearest to the given duration percentage.
This method will attempt to seek to the given duration percentage. On success a positionChanged signal will be emitted with the new location, or an error signal is emitted.
| Parameters | |
|---|---|
| percentage |
The percentage of duration to attempt to seek to. Valid values are 0.0 to 1.0. |
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Changes the current track to the specified index.
This method will cause the player to seek to the specified track and will result in a trackChanged() signal.
| Parameters | |
|---|---|
| track |
The one based index of the track to seek to. |
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Used to set the audio output for the player.
Sets the audio output for the player. This can be either default or none.
| Parameters | |
|---|---|
| audioOutput |
The specified audio output type. |
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Used to set the auto pause functionalty for the player.
Enables or disables the auto pause functionality of the player. If enabled the platform will be allowed to auto pause playback. In the case where playback is occuring over a headset, and the headset is removed, playback will be paused rather than continuing over the speaker.
| Parameters | |
|---|---|
| autoPause |
The specified auto pause flag to set. |
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Used to set the value of the repeat mode for the player.
Sets the repeat mode for the player. When set to track, the player will continuously play and repeat the current track. When set to all, the player will play all tracks in a playlist, then repeat the entire playlist once all tracks have been played. When set to none, no repetition will occur.
| Parameters | |
|---|---|
| repeatMode |
The specified repeat mode. Value can be either none, track, or all. |
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Sets the URI to be used as the media source.
This method sets the media source for the player. The URL can point to a single track, or a playlist. If the player has acquired the resources to play the media source and this value is empty, then the player will stop and release any resources that it currently holds.
| Parameters | |
|---|---|
| url |
A URL string pointing to a track or a playlist to use as a media source. |
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Sets the playback speed of the player.
Normal playback speed is 1.0, and it is the default speed when the player is prepared. The player is prepared when it has acquired the necessary resources to play the media source.
Setting this value to 0.0 is equivalent to pausing playback and will trigger a paused() signal.
Conversely, if this call successfully changes the playback speed from 0.0 to a non-zero speed, then the player will move from paused to playing and a playing() signal will be emitted.
Any value between 0.0 and 1.0 is slow-forward playback and values above 1.0 will result in fast-forward playback corresponding to the value. For example a value of 0.5 will playback at half speed, and a value of 2.0 will result in twice normal playback speed.
Negative values result in reverse playback, if supported by the media source. If reverse playback is not supported, calling this method with a negative value will have no effect.
If this call successfully changes the playback speed, even when the player is effectively stopped or started as a result of the call, a speedChanged signal is always emitted by the player.
A call to setSpeed() when the player is prepared or stopped will result in playback at the new speed once play() is called. If the speed is set to 0.0 when stopped then a call to play() will immediately transition the player to the paused state, and will trigger a paused() signal.
| Parameters | |
|---|---|
| speed |
The playback speed. |
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
statusInterval Represents the requested amount of time in milliseconds between regular status update.
Generally this setting is applied to position and buffering updates. If a track change occurs within the interval it is still signalled immediately.
| Parameters | |
|---|---|
| statusInterval |
The requested status interval in milliseconds. |
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Sets the video output device to be used for playback.
This method sets the video output on a player. If the player is prepared and the video output is being set to or from none the player will be unprepared. It is up to the user to call prepare() or play(). Switching between primary and secondary video outputs on a prepared player does not interrupt playback since the video device is already acquired.
| Parameters | |
|---|---|
| videoOutput |
The video output device to be used. |
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Sets the video source rectangle to be used for display on the video surface.
The values for this rectangle must be less than or equal to the video dimensions. By default the value of this rectangle is equal to the video dimensions. The values of this rectangle can be used to simulate zooming into a video.
| Parameters | |
|---|---|
| x |
The X coordinate of the video rectangle. |
| y |
the Y coordinate of the video rectangle. |
| width |
The width of the video source rectangle. |
| height |
The height of the video source rectange. |
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
void
Sets the window gropu id to use when the video output device is set to either primary or secondary.
This method sets the window group id to use when the player creates a screen to use for the video surface.
| Parameters | |
|---|---|
| windowGroupId |
The screen window group id name to use. |
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
void
Sets the window id to use when the video output device is set to either primary or secondary.
This method sets the window id to use when the player creates a screen to use for the video surface.
| Parameters | |
|---|---|
| windowId |
The screen window id name to use. |
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
MediaError::Type
Stops the player and moves to the stopped state.
This method will move the player into the stopped state. Calling play() will result in the media commencing playing back from the start. This method will result in a stopped() signal being emitted. The stopped() signal indicates that the player is in the stopped state.
Returns MediaError.None on success, otherwise a specific media error code.
BlackBerry 10.0.0
Signals
void
This signal is emitted when the externally managed audio manager has changed.
| Parameters | |
|---|---|
| audioManagerHandle |
The audio manager handle. |
BlackBerry 10.0.0
void
This signal is emitted when the audio output has changed.
In response to setAudioOutput() this signal will be emitted to notify of the change.
| Parameters | |
|---|---|
| audioOutput |
The current audio output. |
BlackBerry 10.0.0
void
This signal is emitted when the audio pause property has changed.
| Parameters | |
|---|---|
| autoPause |
The current auto pause property value. |
BlackBerry 10.0.0
void
This signal is emitted when the player is buffering.
When the player is buffering this signal will be emitted indicating what percentage of the buffer has been filled. The player will still be in the playing state.
| Parameters | |
|---|---|
| percentage |
The percentage of the buffer filled (0 - 1.0). |
BlackBerry 10.0.0
void
This signal is emitted when the player buffer status has changed.
The values for this signal can be idle, buffering or playing.
| Parameters | |
|---|---|
| bufferStatus |
The current buffer status. |
BlackBerry 10.0.0
void
This signal is emitted when the track duration is known.
Retrieving the duration of some tracks may not be known when the track is changed. This signal will notify of the duration when available.
| Parameters | |
|---|---|
| duration |
The total duration of the track in milliseconds. |
BlackBerry 10.0.0
void
This signal is emitted when an error occurs during any operation on the MediaPlayer().
When an error occurs during playback, this method is called with the error code, as well as the position in the recording where the error occurred.
| Parameters | |
|---|---|
| mediaError |
The playback media error. |
| position |
The position of the player when the error occurred. |
BlackBerry 10.0.0
void
This signal is emitted when the state of the media has been changed.
| Parameters | |
|---|---|
| mediaState |
The current media state. |
BlackBerry 10.0.0
void
This signal is emitted when the metadata has been parsed.
| Parameters | |
|---|---|
| metaData |
The parsed metadata. |
BlackBerry 10.0.0
void
This signal is emitted when all tracks have completed playback.
BlackBerry 10.0.0
void
This signal is emitted when the track playback position has changed.
This signal will be emitted approximately once per second in response to a call to seek() or when normal status updates occur.
| Parameters | |
|---|---|
| position |
The current track playback position in milliseconds. |
BlackBerry 10.0.0
void
This signal is emitted when the player repeat value has changed.
RepeatMode::All repeats the entire playlist.
RepeatMode::Track repeat the current playlist track.
RepeatMode::None does not repeat anything.
| Parameters | |
|---|---|
| repeatMode |
The new repeat value that the player has changed to. |
BlackBerry 10.0.0
void
This signal is emitted when the known seek ability of a track changes.
| Parameters | |
|---|---|
| seekable |
The seek ability flag for the current track. This value is true if the position of the current track is seekable. |
BlackBerry 10.0.0
void
This signal is emitted when the player media source has been changed.
This signal is emitted when the media source for the player has been changed in response to a call to setSource().
| Parameters | |
|---|---|
| sourceUrl |
The source URL for the player. |
BlackBerry 10.0.0
void
This signal is emitted when the track playback speed has been changed.
This signal is emitted in response to a call to setSpeed() or pause() while the player is in the playing state. This signal is also emitted in response to a call to play() while the player is in the paused state.
| Parameters | |
|---|---|
| speed |
The playback speed relative to normal playback of 1.0. |
BlackBerry 10.0.0
void
This signal is emitted when the requested status interval has been changed.
This signal is emitted in response to a call to setStatusInterval().
| Parameters | |
|---|---|
| statusInterval |
The requested status interval in milliseconds. |
BlackBerry 10.0.0
void
This signal is emitted when the track has changed.
This signal is emitted when the player has acquired the necessary resources for playback, and the track has changed.
| Parameters | |
|---|---|
| track |
The current track index. |
BlackBerry 10.0.0
void
This signal is emitted when the track count has changed.
This signal is emitted when the player has acquired the necessary resources for playback, and the track count has changed.
| Parameters | |
|---|---|
| trackCount |
The number of tracks available to the player. |
BlackBerry 10.0.0
void
This signal is emitted when the video dimensions have changed.
This signal is emitted once the player has determined the dimensions of the video component or they have changed.
| Parameters | |
|---|---|
| videoDimensions |
A size object containing both the video height and width. |
void
This signal is emitted when the video output has changed.
In response to setVideoOutput() this signal will be emitted to notify of the change.
| Parameters | |
|---|---|
| videoOutput |
The current video output. |
BlackBerry 10.0.0
void
This signal is emitted when the window group id has changed.
In response to setWindowGroupId() this signal will be emitted to notify of the change.
| Parameters | |
|---|---|
| windowGroupId |
The new window group id to use for the video output. |
BlackBerry 10.0.0
void
This signal is emitted when the window id has changed.
In response to setWindowId() this signal will be emitted to notify of the change.
| Parameters | |
|---|---|
| windowId |
The new window id to use for the video output. |
BlackBerry 10.0.0