Media Player

The Media Player screen contains the following applications: Play Radio, Play Music, Play Video, and Search.

To open the associated application, tap one of the active controls or use voice commands. To go back to the main Media Player screen, tap the Media Player tab in the taskbar.

A menu of media sources is accessible from the Play Radio, Play Music, and Play Video applications. This menu makes it easy to switch between playing music and videos from different sources. See the Media source menu section for details.

Play Radio

When you tap the Radio menu option, you'll see a submenu with two options:
  • AM/FM—tap to view the default radio
  • Pandora—tap to view the version of Pandora that's integrated into the media player

The integrated version of Pandora looks and functions like the standalone version.

If Pandora isn't set up, tapping the Radio button takes you directly to the screen that shows a reference UI for a radio application:

Note: This app is a simulation on the Panda and i.MX6 development boards, which have no radio hardware.
The Radio App has been developed as a Sencha Touch application, taking advantage of the framework's MVC architectural pattern. The app has two profiles:
  • high—presents advanced animation and a graphically rich skin
  • mid—has a more basic look and feel

On the Panda board, the default profile for the Radio App is high, but you can configure the app to use the mid profile. These profiles (and the profile used by the other HMI components) are defined by a PPS object. For more information about setting the profile type, see the/pps/qnxcar/system/settings entry in the PPS Objects Reference.

All the controls for the radio application, including the slider, dial, AM, FM, Seek, Scan, and presets are functional. But again, the radio itself is only a simulation on the Panda and i.MX6 boards.

Play Music

Tap the Play Music button to open the Music Player:

The Juke Box database is loaded with several music files that the HMI shows in an active carousel. Using voice or touch controls, you can start, pause, or skip tracks (shuffle and repeat are not available as voice commands). You can use voice commands to play media by the named song, album, or artist.

Play Video

Tap the Play Video control to open the video player. This release includes the following video:

"The Making of the QNX Reference Vehicle: Jeep Wrangler"

The Play, Pause, Forward, and Backward controls are functional. The Full Screen control isn't functional.

Note:

Playing video on the i.MX6

The codecs required for video playback on the i.MX6 Sabre Lite platform are available as a separate package from the QNX CAR platform site.

To enable video playback on the i.MX6:
  1. Obtain the Freescale video components from the QNX CAR platform site:

    QNX CAR platform 2.0 RR - Freescale video components

  2. Create the directory /base/lib/firmware/vpu/.
  3. Place the VPU codec binary (vpu_fw_imx6q.bin) in the /base/lib/firmware/vpu/ directory.
  4. Restart your system using the reboot command.

Search

Tap the Search control to access the search feature. The HMI shows a list of search sources, such as iPod, USB drive, or Juke Box. Tap the entry for the device you want to search. The HMI then shows a text field that lets you find an artist, album, or track by name.

Media source menu

Tap Menu at the top of the Play Radio, Play Media, or Play Video screens to view a list of media sources. The media sources can include: Radio, Apple iPod (if connected), USB drive (if connected), DMS devices (if DLNA is enabled), or the Juke Box database. You can then do the following:
  • Tap Radio to access the radio reference UI described earlier (or Pandora if it's set up).
  • Tap iPod, USB drive, the entry for any local DMS device, or Juke Box to see a list of music media sorted by playlists, artists, albums, songs, and genres.

To return to the previous screen, tap the Menu control at the bottom of the screen.

The Home screen shows information about the selected song if the Music Player is active.

DLNA support

The media player currently supports Digital Living Network Alliance (DLNA) technology using the Twonky DMS. When DLNA is enabled on your target, any local DMS devices will appear in the list of available media sources under Menu.

All playback controls, including Skip and Seek, are functional for DLNA devices.

Starting DLNA

DLNA isn't set up to start by default. To enable the services to start on boot up, edit the file /var/etc/services-enabled and set the DLNA configuration option to true:

DLNA:true

You must reboot your target for the change to take effect.

Verifying that DLNA services are running

Use the following commands to verify that the DLNA services are running. The pidin utility will return the PID of each service.

pidin ar | grep "twonky"
pidin ar | grep "dmc"
pidin ar | grep "dmr"
pidin ar | grep "dmcclient"

PPS interface

Tested hardware

We tested the DLNA implementation with the following hardware setup:

Hardware Description
Target board Panda Rev. A3.
Router Cisco Linksys EA2700 wireless router. The target board was connected to the router by a Category 6 Ethernet cable.
Smartphone A Samsung Galaxy S II (model GT-19100) running Android version 2.3.3 software was used to run the DLNA server software (Twonky DMS). The device was connected by Wi-Fi to the Cisco Linksys wireless router.

For the DMS in this setup, we used the latest version of the TwonkyServer Mobile v 2.3 DMS for Android.

Note: Currently, the MP3 audio format is the only supported and tested digital media type.