adilismail / imsdroid

Automatically exported from code.google.com/p/imsdroid
0 stars 0 forks source link

Does stopping video during in-call actually stop video path? #172

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. When in video call and we press Stop Video, from the code I see that this 
does not actually stop the entire video path but just renders the view 
invisible. Please correct me if I am wrong.
The following is the code from the method startStopVideo:

if(start){
  this.timerBlankPacket.cancel();
  final View local_preview = this.avSession.startVideoProducerPreview();
  if(local_preview != null){
   final ViewParent viewParent = local_preview.getParent();
   if(viewParent != null && viewParent instanceof ViewGroup){
      ((ViewGroup)(viewParent)).removeView(local_preview);
   }
   this.llVideoLocal.addView(local_preview);
  }
}
this.llVideoLocal.setVisibility(start ? View.VISIBLE : View.GONE);

What is the expected output? What do you see instead?
I would like to actually pause/resume the video at source i.e the video capture 
device.

What version of the product are you using? On what operating system?
IMSDroid/v1.2.353 (doubango r539) on Android 2.2

Original issue reported on code.google.com by kow...@gmail.com on 10 Feb 2011 at 11:19

GoogleCodeExporter commented 9 years ago
Removing the view will trigger surfaceDestroyed() callback.
The camera is stopped into this function (MyProxyVideoProducer.java).

Original comment by boss...@yahoo.fr on 10 Feb 2011 at 12:00