Xamarin.Forms Vidyo.IO “OnLocalCameraStateUpdated”

2019-08-21 04:41发布

问题:

I need help regarding vidyo.io SDK in xamarin. I code based on the provided github repo for sample purpose. My problem is i cant see the camera preview in my custom renderer.

回答1:

You have to find RefreshUI() method inside VidyoController.cs and add:

   _connector.AssignViewToCompositeRenderer(_videoView.Handle, Connector.ConnectorViewStyle.ConnectorviewstyleDefault, 15);

Before _connector.ShowViewAt(....); It will reassign your view as display a preview