MediaDefaultStoragePath

Default storage path utility for Cordova Media plugin
eworx0.0.20
platforms: android,ios
$ cordova plugin add gr.eworx.mediaDefaultStoragePath

media-default-storage-path

This is a utility plugin regarding the Cordova Media Plugin. It provides a helper method that returns the absolute path of the directory where the Cordova media recorder saves recordings by default, if the recorder object is constructed given a simple file name, with no uri schema.

A typical example of such a case is the following:

var recorder = new Media('myFile.wav');
recorder.startRecord();

To find out the absolute path of the recording:

var util = new window.gr.eworx.MediaDefaultStoragePath();
util.getDefaultStoragePath(function(directoryPath) {
    var filePath = directoryPath + '/myFile.wav';
    // do something with filePath
});

This plugin currently supports Android and iOS