Sunday, 23 February 2014

Sam, the Application Developer at MegaMusic Co. Ltd., has been assigned a task to develop a Windows Store app for playing audio files. As an initial step, he has created the UI of the app, as shown in the following figure.

Problem Statement:

Sam, the Application Developer at MegaMusic Co. Ltd., has been assigned a task to develop a Windows Store app for playing audio files. As an initial step, he has created the UI of the app, as shown in the following figure.

Now, he has to add functionalities to the app so that the users are able to:
Select any of the audio files from the list provided to the users in the Playlist section.
Play or pause the music.
Navigate back and forth in the Playlist section.
Repeat the currently playing song.
Adjust the volume.
Seek to any position in the currently playing song.
In addition, Sam has to ensure that the users are notified about the progress of the currently playing song in the hh:mm:ss format along with the total length of the music file. 

Further, he has to ensure that a thumbnail or video is displayed for the selected music file.
Help Sam to add the preceding functionalities to the app.
Prerequisite: To perform this activity, you need to use the MusicPlayer app that you have created while performing Activity 2.1 in Chapter 2. In addition, the following files are required to complete this activity:
  • Flo_Rida_-_Whistle.mp3
  • Katy.mp3
  • NoThumbnail.PNG

Solution:
To add functionalities to the MusicPlayer app, Sam needs to perform the following tasks:
         Add the song and image files in the project.
Define a class to represent songs.
Add songs to the playlist.
Initialize the controls with the default values.
Add functionality to load the selected song from the playlist.
Add functionality to the Play button.
Add functionality to the Pause button.
Add functionality to the Next button.
         Add functionality to the Previous button.
Add functionality to the song progress slider.
Add functionality to the volume slider.
Add functionality to the repeat song switch.
Execute the app and verify the output.

No comments:

Post a Comment