Skip to content Namespace

The namespace, together with the media object and the record object, implements the functionality of the Media API.

Your app uses the functions in the namespace to create media and record objects. It calls the createFromFile and createFromUri functions to instantiate media objects and associate media objects with files. The files can exist either locally on the device or remotely across the network or Internet.

To record audio to a file, your app uses the function to create a record object.