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 3. The Capture API allows you to only 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 live online training, plus books, videos, and digital content from nearly 200 publishers.