Android sinch full screen issue

738 views Asked by At

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

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

2

There are 2 answers

0
Sumit Kumar On

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.

1
Jitendra On

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();