Chapter 6Multimedia

  • Discovering multimedia content
  • Accessing the device’s camera
  • HTML5 multimedia features

The wrox.com code downloads for this chapter are found at www.wrox.com/go/professionaltizen on the Download Code tab. The code is in the Chapter 6 download. After decompressing the downloaded Zip files, you will have two project folders containing the full code for the Content Manager and Camera applications.

In this chapter you will discover the multimedia capabilities available to you in the Tizen Web Runtime. You will first take a look at discovering content using the Tizen Content Manager API, then you will look at a simple three-page application that lists media directories, the contents of a selected directory, and then an overview and preview page for a single piece of content. This covers the majority of cases you are likely to encounter when developing your own applications.

From there you will take a look at using the HTML5 Media Capture API to control a device’s camera, including how to take a still image from a camera stream and save it to the file system. Along the way you’ll learn about the HTML5 audio and video elements and get to know the creative possibilities those APIs provide.

DISCOVERING MULTIMEDIA CONTENT

Retrieving information about media files from the device’s file system is achieved through using the ContentManager. In order to do this function, the application needs the correct ...

Get Professional Tizen Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.