QNX CAR Platform for Infotainment 2.1 -- JavaScript API (Cordova)

car.mediaplayer

Media playback, browse, and search API.
Source:

Classes

Mediaplayer

Members

<static> Event

Event enumeration.
Properties:
Name Type Description
MEDIA_SOURCE_CHANGE The media source changed.
TRACK_SESSION_CHANGE The track session changed.
PLAYER_STATE_CHANGE The media player changed state.
TRACK_CHANGE The track changed.
TRACK_POSITION_CHANGE The position in the track changed session is appended.
ERROR An error occurred.
Source:

<static> MediaNodeType

Media node type enumeration
Properties:
Name Type Description
UNKNOWN The media type is unknown.
FOLDER The media type is folder.
AUDIO The media type is audio.
VIDEO The media type is video.
PHOTO The media type is photo.
Source:

<static> MediaSourceEvent

Media source event enumeration
Properties:
Name Type Description
ADDED The media source is added.
REMOVED The media source is removed.
UPDATED The media source is updated.
Source:

<static> MediaSourceType

Media source type enumeration
Properties:
Name Type Description
HDD The media source is HDD.
USB The media source is USB.
IPOD The media source is iPod.
DLNA The media source is DLNA.
BLUETOOTH The media source is Bluetooth.
MTP The media source is MTP.
Source:

<static> PlayerStatus

Media player status enumeration
Properties:
Name Type Description
DESTROYED The media player instance was destroyed.
IDLE The media player is idle.
PLAYING The media player is playing.
PAUSED The media player is paused.
STOPPED The media player is stopped.
Source:

<static> RepeatMode

Repeat mode enumeration.
Properties:
Name Type Description
REPEAT_OFF Repeat mode is off.
REPEAT_ALL Repeat all tracks.
REPEAT_ONE Repeat one track.
Source:

<static> ShuffleMode

Shuffle mode enumeration
Properties:
Name Type Description
SHUFFLE_OFF Shuffle mode is off.
SHUFFLE_ON Shuffle mode is on.
Source:

<static> TrackSessionEvent

Track session event enumeration
Properties:
Name Type Description
CREATED The track session is created.
DESTROYED The track session is destroyed.
APPENDED The track session is appended.
Source: