www/Media.js
function(src, successCallback, errorCallback, statusCallback) {
    argscheck.checkArgs('sFFF', 'Media', arguments);
    this.id = utils.createUUID();
    mediaObjects[this.id] = this;
    this.src = src;
    this.successCallback = successCallback;
    this.errorCallback = errorCallback;
    this.statusCallback = statusCallback;
    this._duration = -1;
    this._position = -1;
    exec(null, this.errorCallback, "Media", "create", [this.id, this.src]);
}
function(src, successCallback, errorCallback, statusCallback) {
    argscheck.checkArgs('sFFF', 'Media', arguments);
    this.id = utils.createUUID();
    mediaObjects[this.id] = this;
    this.src = src;
    this.successCallback = successCallback;
    this.errorCallback = errorCallback;
    this.statusCallback = statusCallback;
    this._duration = -1;
    this._position = -1;
    exec(null, this.errorCallback, "Media", "create", [this.id, this.src]);
}
function ( src , successCallback , errorCallback , statusCallback ) { argscheck . checkArgs ( 'sFFF' , 'Media' , arguments ) ; this . id = utils . createUUID ( ) ; mediaObjects [ this . id ] = this ; this . src = src ; this . successCallback = successCallback ; this . errorCallback = errorCallback ; this . statusCallback = statusCallback ; this . _duration = - 1 ; this . _position = - 1 ; exec ( null , this . errorCallback , "Media" , "create" , [ this . id , this . src ] ) ; }
This class provides access to the device media, interfaces to both sound and video

@constructor
@param src                   The file name or url to play
@param successCallback       The callback to be called when the file is done playing or recording.
successCallback()
@param errorCallback         The callback to be called if there is an error.
errorCallback(int errorCode) - OPTIONAL
@param statusCallback        The callback to be called when media status has changed.
statusCallback(int statusCode) - OPTIONAL
This class provides access to the device media interfaces to both sound and video