14. Media

The Cordova Media API provides applications with the ability to record and play audio files from within a Cordova application. With this API, there is some overlap with the capabilities of the Capture API described in Chapter 4. The Capture API only allows you to record audio files using the built-in voice recorder application, while the Media API will play and record audio files from directly within the Cordova application’s UI. The documentation for the Media API indicates that the API doesn’t follow the Capture standard and warns developers that future development will be around the Capture API.

That being said, there’s still some usefulness for this API. Even though the Capture API allows you to capture audio files, duplicating ...

Get Apache Cordova API Cookbook 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.