} catch (Exception e) {
gLogger.error("openCameraOriginal - camera is not available. error: " + e.getMessage());
if(mListener != null) mListener.onCameraError("openCamera - error: " + e.getMessage());
} catch (Exception e) {
gLogger.error("openCameraOriginal - camera is not available. error: " + e.getMessage());
if(mListener != null) mListener.onCameraError("openCamera - error: " + e.getMessage());
gLogger.error( "onDestroy --------->");
Toast.makeText(this, "MyService Stopped", Toast.LENGTH_LONG).show();
if(mCamera != null){
gLogger.error( "onDestroy --------->");
Toast.makeText(this, "MyService Stopped", Toast.LENGTH_LONG).show();
if(mCamera != null){
gLogger.error("setRtmpUrl - size: " + width + "x" + height + ". url: " + url);
int ret = FfmpegHelper.initEncoder(width, height, url);
if(ret != 0){
gLogger.error("setRtmpUrl - size: " + width + "x" + height + ". url: " + url);
int ret = FfmpegHelper.initEncoder(width, height, url);
if(ret != 0){