使用Phonegap在Canvas / Video中显示相机流

时间:2023-01-27 23:44:53

For Phonegap (Android), we are currently investigating the possibility to set the stream of the camera of an Android device as the source of a video element. A bit in the lines of gUM on webbrowsers.

对于Phonegap(Android),我们目前正在调查将Android设备的摄像头流设置为视频元素源的可能性。在webbrowsers上的gum行中有点像。

We would like to build a video chat app with Phonegap.

我们想用Phonegap构建一个视频聊天应用程序。

The documentation only shows functions that call the native camera application, which is not what we are looking for.

该文档仅显示调用本机相机应用程序的函数,这不是我们正在寻找的。

Is showing the stream of the camera of an Android mobile device inside a HTML element with Phonegap possible?

是否可以在具有Phonegap的HTML元素中显示Android移动设备的相机流?

1 个解决方案

#1


1  

Did you have a look at getUserMedia https://developer.mozilla.org/en-US/docs/NavigatorUserMedia.getUserMedia

您是否看过getUserMedia https://developer.mozilla.org/en-US/docs/NavigatorUserMedia.getUserMedia

and https://github.com/HenrikJoreteg/getUserMedia

和https://github.com/HenrikJoreteg/getUserMedia

#1


1  

Did you have a look at getUserMedia https://developer.mozilla.org/en-US/docs/NavigatorUserMedia.getUserMedia

您是否看过getUserMedia https://developer.mozilla.org/en-US/docs/NavigatorUserMedia.getUserMedia

and https://github.com/HenrikJoreteg/getUserMedia

和https://github.com/HenrikJoreteg/getUserMedia