Media Service¶
Use the Media Service to play music that is available in the content system.
The service contains methods that enable you to control the music playback. With the Media Service you can:
Get the playback state.
Get the information about the currently playing media. For example, the current track and playlist information.
Access the next and previous tracks in the playlist.
Play both local and remote music. The track URI can point either to a local file or to a file on a remote file server.
To access the data related to all the music available in the content system, use the Content Service.
Runtime data¶
Current playlist¶
Playlist ID
Playlist name
Playlist tracks
Playlist source
Previous track, current track, next track¶
Track ID
Track name
Track artist
Track album ID
Track URI
Track image
Track source
Playback state¶
Playback state. Stopped, playing, paused
Playback position. For example, 04:20.
Playback duration. For example, 05:23.
Playback offset. [0..1]
Interface definition¶
The interface definition XML file for the Media Service is <KanziConnectInstallation>/SDK/examples/services/native/interfaces/definitions/media_interface.xml
.
Fully qualified name for the Media Service is Connect.Service.Media
.
Supported platforms¶
The Media Service is supported on Windows using the Windows Media Foundation.