O'Reilly logo

iPhone JavaScript Cookbook by Arturo Fernandez Montoro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Mastering Sound and Music

In this chapter, we will cover:

  • Making a beep alert
  • Making a vibrate alert
  • Creating an iPod playlist and playing a specific item
  • Loading an iTunes playlist
  • Playing an audio file
  • Playing a video
  • Recording an audio

Introduction

This chapter introduces you to a set of recipes about how to utilize the audio and video capabilities of the iPhone. Many users decide to use their smartphone as a multimedia player; therefore, developers will find how to build applications for playing video and audio files very interesting.

We'll start to find out how to make a simple beep sound from our application. Then, we'll discover another kind of notification for vibrating the device. After learning this, we'll delve into more advanced features ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required