Mediaplayer
Access and control features that support the media player, such as audio output, repeat mode, and buffer status.
The media player APIs let you add multimedia features to your app, such as the ability to play videos and other media sources. You can play a video directly in your app, and you can retrieve information about the playback. You can also overlay a set of controls (such as previous, pause, and next actions) on top of the video that's playing, and you can listen for and react to these actions in your app.
Libraries and permissions
To link against these classes, add the following line to your .pro file:
LIBS += -lbbmultimedia
You must also specify the following permissions in your bar-descriptor.xml file:
access_shared
Additional resources
To learn more about the media player and how to use it to play videos and other media, visit the Audio/Video documentation.
To download a code sample that demonstrates how to integrate the media player into your apps, visit the Cascades Samples repository in Github.
Members
- AudioOutput
- BufferStatus
- MediaPlayer -
The MediaPlayer class provides the ability to control media playback.
- MetaData -
Provides string keys for a QVariantMap of metadata.
- NowPlayingConnection
- OverlayStyle -
Represents the various overlay styles used by a NowPlayingConnection.
- RepeatMode
- VideoOutput