Media Player

The following information shows you how to use invocation framework with Media Player. See Mediaplayer for information on using the Media Player API.

Opening audio or video files

Here are the invocation attributes you use to open audio or video files:

Attribute Value
Target ID sys.mediaplayer.previewer
MIME type All supported audio and video files
Action bb.action.VIEW
  • file://
  • http://

Not applicable

Here are the data attributes to open audio or video files:

Data Description
contentTitle The title that's displayed in the viewer title field.
imageUri The URL of the image source that replaces the default background image. This attribute is useful for audio content.

Data must be the PPS-encoded QVariantMap, as shown in the example below:
QVariantMap map;
map.insert(“contentTitle”, “My Title”);         
map.insert(“imageUri”, “file://..”);           
QByteArray requestData = PpsObject::encode(map, NULL);

Not applicable

The invocation attributes you use to open audio or video files with the Media Player application require the same set of attributes as the ones you use for the Media Player cards, except for the target ID:

Attribute Value
Target ID

Last modified: 2014-09-30

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus