Say we are building an application for the Sales force that allows them to look at the orders placed in the ERP system from their touch device. And, you want to notify your user by playing a notification sound as soon as a new order arrives in the system. This can be achieved using the audio component provided by Sencha Touch. In this recipe we will see how to use the audio component to play a sound.
Make sure that you have set up your development environment by following the recipes outlined in Chapter 1, Gear Up for the Journey.
Create a new folder,
ch07, in the
www folder. We will be using this new folder to keep the code.
Follow the mentioned steps to use the audio component: