Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android sinch full screen issue

How do I set the remote view of sinch to full screen in Android.

I have try VideoController.setResizeBehaviour,but it doesn't work.

like image 524
maulik Avatar asked Feb 14 '26 09:02

maulik


2 Answers

You need to use Sinch serverice class. Sinch documentation not properly written.

Put this in public class SinchService extends Service.

  mSinchClient.addSinchClientListener(new MySinchClientListener());
            mSinchClient.getCallClient().addCallClientListener(new SinchCallClientListener());
            mSinchClient.getVideoController().setResizeBehaviour(VideoScalingType.ASPECT_FILL);
            mSinchClient.start();
like image 54
Jitendra ramoliya Avatar answered Feb 16 '26 23:02

Jitendra ramoliya


I am also facing same problem some time ago. Now, I have solution and it is so simple. Where you are creating sinch client in SinchService insert below code.

mSinchClient.getVideoController().setResizeBehaviour(VideoScalingType.ASPECT_FILL);

when you try to set setResizeBehaviour function anywhere then the error tells clearly that sinchClient is already created, set it before.

I hope, it will help you and others.

like image 39
Sumit Kumar Avatar answered Feb 17 '26 00:02

Sumit Kumar