The mm-renderer service supports playback of tracks and playlists.
It can play content read either from the local filesystem or through HTTP streams.
A track is an audio or video file such as an MP3 or MP4 file.
A playlist is a list of track URLs. The following types of playlists are supported:
- M3U files
- The input URL must be a full path (with or without a file: or http: prefix)
of a file with an M3U extension. In its simplest form, an M3U file is a
plain-text file containing the pathnames or URLs of the tracks to
play (one per line). Playlists for HTTP Live Streaming (HLS) are
supported; these may have M3U and M3U8 file extensions.
- SQL queries
- The input URL must be of the form
sql:database?query=querystring,
where database is a full path to a database file,
and querystring is an SQL query that returns a
column of track names. If the query contains any reserved
characters, they must be URL-encoded (e.g., %26
instead of &).
For the current list of supported media formats, see the
Release Notes for the QNX SDK for Apps and Media.
Media sources
You can play audio and video tracks that come from the following sources:
- Files
- To play media content from files, specify the path (in POSIX format) of a local file in the input URL
(see mmr_input_attach() for information
on setting the input URL).
- HTTP streams
- To play media content from HTTP sources, specify an HLS source or another type
of HTTP stream in the input URL. The mm-renderer service supports cookies, SSL, and
authentication, which enables secure playback of HTTP streams.