Xamarin.Forms Vidyo.IO"OnLocalCameraStateUpdated"; (Connector.IRegisterLocalCameraEventListener)回调未调用 [英] Xamarin.Forms Vidyo.IO "OnLocalCameraStateUpdated" (Connector.IRegisterLocalCameraEventListener) callback not called
本文介绍了Xamarin.Forms Vidyo.IO"OnLocalCameraStateUpdated"; (Connector.IRegisterLocalCameraEventListener)回调未调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要有关xamarin中的vidyo.io SDK的帮助.我基于提供的github回购代码进行示例.我的问题是我无法在自定义渲染器中看到相机预览.
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.
推荐答案
您必须在VidyoController.cs中找到RefreshUI()方法并添加:
You have to find RefreshUI() method inside VidyoController.cs and add:
_connector.AssignViewToCompositeRenderer(_videoView.Handle, Connector.ConnectorViewStyle.ConnectorviewstyleDefault, 15);
在_connector.ShowViewAt(....)之前; 它将在显示预览时重新分配您的视图
Before _connector.ShowViewAt(....); It will reassign your view as display a preview
这篇关于Xamarin.Forms Vidyo.IO"OnLocalCameraStateUpdated"; (Connector.IRegisterLocalCameraEventListener)回调未调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文