简体   繁体   English

如何在Android中的Phonegap中显示GlSurfaceView

[英]How To Display GlSurfaceView in Phonegap in android

I have requirement in my Project. 我的项目中有要求。 My project is Video conference call using third party library. 我的项目是使用第三方库进行视频电话会议。 I am doing this project in Native android and phonegap. 我正在本机android和phonegap中执行此项目。 In Native android, After succefully connect video conference call , The thrird party library gives a custom view which extends GLSurfaceView (For rendering Video). 在Native android中,成功连接视频电话会议后,第三方库将提供自定义视图,该视图扩展了GLSurfaceView(用于呈现视频)。 I added custom view as child of Relative layout in my Screen. 我在屏幕中将自定义视图添加为相对布局的子视图。 So, it works well in Native android application. 因此,它在本机android应用程序中运行良好。 But ,I have a problem in Phonegap. 但是,我在Phonegap中有问题。 After succefully connect Video conference call how to send or disply GlSurfaceView in phonegap. 成功连接视频会议后,如何在phonegap中发送或显示GlSurfaceView。 Could please anybody give a suggestion to my problem. 请任何人对我的问题提出建议。 Sorry for my bad english. 对不起,我的英语不好。

You can't put GlSurfaceView into CordovaWebView, but you can place in next/top of to each other. 您不能将GlSurfaceView放入CordovaWebView中,但是可以彼此相邻。

Create Relative view and put both of them into it. 创建相对视图并将它们都放入其中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM