Chapter 9. Presenting Multimedia

In this chapter, we will cover the following recipes:

  • Playing audio
  • Playing audio in the background
  • Managing the audio volume
  • Recording an audio
  • Playing a video
  • Custom video controls
  • Using the camera
  • Creating a camera app
  • Handling high-resolution images
  • Drawing on the canvas of a View
  • Drawing on the canvas of SurfaceView

Introduction

Multimedia is one of the most commonly used mechanisms for attracting users to mobile apps and games. No matter how great an app, if it is not designed well, it will not be well received by the users. Users not only want to be amazed by great designs, but they also want to be entertained.

Adding audio and sound effects to a game really makes the game seem more complete. By simply adding feedback sound effects, the app seems to be responding more rapidly. Sound effects can range from short sounds when a button is tapped to a looping background track while the app is open. Even game menus have sounds, and although it should not be overdone, sounds add depth to many types of apps.

Not only sound, but also visual effects and feedback. By simply displaying a small change when the user interacts with an onscreen element, the user already feels that the app is responding. Visual enhancements can go all the way to including videos. Almost all content can be described by static text and images, but a video provides a far greater means to present data, as well as to draw a user into an app. Videos can range from a simple looping background all the way to longer, more detailed videos.

If the user wants to be entertained, making use of the camera allows the user to interact with the real world through the device. This can range from taking a photo and adding a message and effects all the way to providing an augmented reality experience. Allowing the user to capture a moment and then adding to it or sharing it supports the reason why social networks exist. People want to be able to interact with others, and, by taking the user's world and showing it on the device with more information, in real time, further makes the device and the app more real. This information can simply be real world information, such as mapping or face recognition, all the way to games that require the user to move in the real world in order to be able to move in the game.

One of the most common form of multimedia, after videos, is games. Games provide the user with a greater experience as compared to a video. The user is immersed in an entire world, where they are in control. This immersion allows the user to be a part of an alternate reality. As a result of this experience, users will continue to buy games so they can remain in the virtual world and do things that may be impossible in the real world.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset