Тег ‘MediaPlayer’:

How-To: Show/sync volume control in iPod/MediaPlayer

Developing for the iPhone, we wanted to show a volume control that sync’ed with the user’s volume control buttons on the side of the phone. It turns out, the best way to do this is to show the volume control using the MPVolumeView class (part of the MediaPlayer framework).
MPVolumeView *volumeView = [[[MPVolumeView alloc] initWithFrame:
  [...]

Теги: , , ,

Комментарии отсутствуют

Hello Music Player

Here is a bare bones hello world-style example that demonstrates library access and music playback. In a few minutes you can have a working, if minimal, music player. Lacking a user interface, this code queues up the entire iPod library and starts playing immediately on launch.
Note: To follow these steps you’ll need a provisioned device [...]

Теги: , , , ,

Комментарии отсутствуют