20. Media

The Media API provides applications with the ability to record and play audio files. With this API, there is some overlap with the capabilities of the Capture API described in Chapter 12. Essentially, this API has limited capabilities as compared to the Capture API, and it’s likely that not much will be done with this API going forward. The documentation for the Media API even kicks off with a warning to developers reminding them that the API doesn’t align with the W3C specification for media capture and that future development will revolve around the Capture API.

That being said, the Media API is still useful. Even though the Capture API allows you to capture audio files, duplicating the same functionality provided in the Media API, ...

Get PhoneGap Essentials: Building Cross-Platform Mobile Apps 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.