You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/08/30 12:14:22 UTC

[GitHub] mdruguet opened a new issue #178: Start record return error code 1 on Android

mdruguet opened a new issue #178: Start record return error code 1 on Android
URL: https://github.com/apache/cordova-plugin-media/issues/178
 
 
   Hello everyone,
   I use the version 5.0.2.
   When i start a record like code below, the plugin returns an error : code 1, only on android.
   Could you help me please?
   
   My code is : 
   
   var fileName = 'test.3gp';
   var filePathAudio = this.file.dataDirectory.replace(/file:\/\//g, '') + fileName;
   var fileAudio1 = this.media.create(filePathAudio);
   
   fileAudio1.onStatusUpdate.subscribe((status) => {
   	alert(status);
   	if(status==this.media.MEDIA_RUNNING) {
   		alert("it s running");
   	}
   });
   				
   fileAudio1.onError.subscribe((error) => {
   	this.safetynApi.displayAlert('fileAudio1 :'+ error);
   	this.safetynApi.displayAlert(error);
   });
   
   fileAudio1.startRecord();

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org