[英]How to show Cordova-media-capture video feed in a DIV?
I´m developing an application with Intel XDK and I can open the video-camera through cordova-media-capture but I need to open the video feed in a DIV. 我正在使用Intel XDK开发应用程序,可以通过cordova-media-capture打开摄像机,但是我需要在DIV中打开视频源。
I tried this tutorial: https://www.raymondcamden.com/2015/06/05/cordova-sample-capture-and-display-video/ 我尝试了本教程: https : //www.raymondcamden.com/2015/06/05/cordova-sample-capture-and-display-video/
But still opens the video-camera as a different app 但仍将摄像机打开为其他应用程序
How can I achieve it? 我该如何实现? Can anybody give me other example? 谁能给我另一个例子吗?
Thank you all. 谢谢你们。
See Cordova CanvasCamera plugin at https://www.npmjs.com/package/com.virtuoworks.cordova-plugin-canvascamera 参见https://www.npmjs.com/package/com.virtuoworks.cordova-plugin-canvascamera的 Cordova CanvasCamera插件
The purpose of the plugin is to capture video to preview camera in a web page's canvas element. 该插件的目的是捕获视频以预览网页画布元素中的摄像机。 Allows to select front or back camera and to control the flash. 允许选择前置或后置摄像头并控制闪光灯。
There is a try out at: https://github.com/VirtuoWorks/CanvasCameraDemo 有一个尝试在: https : //github.com/VirtuoWorks/CanvasCameraDemo
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.