简体   繁体   English

OpenTok-发布非摄像机视频流?

[英]OpenTok - Publish non-camera video stream?

Using OpenTok is there a way publish a video stream whose source is not a camera? 使用OpenTok是否可以发布源不是摄像机的视频流? That is, I would like to publish a video which is either pre-recorded or a video being generated by a source other than a camera. 也就是说,我想发布一个预先录制的视频或由除摄像机以外的其他来源生成的视频。 Any suggestions on how this can be done? 关于如何做到这一点的任何建议? Thank you much! 非常感谢!

(Just as a quick reasoning for this, our system uses OpenTok using the normal approach, but we want to run tests with non-camera generated video) (为此,作为一个快速的推理,我们的系统使用常规方法使用OpenTok,但是我们想对非摄像机生成的视频进行测试)

OpenTok, or any other framework, doesn't get the video stream directly from the camera. OpenTok或任何其他框架不会直接从摄像机获取视频流。 It asks the browser to redirect the camera feed. 它要求浏览器重定向摄像头。 So you would have to trick the browser into providing a video file instead. 因此,您将不得不诱使浏览器提供视频文件。

The easiest way to do this is to install a virtual webcam software. 最简单的方法是安装虚拟网络摄像头软件。 There are many options for that but I usually go with splitcam , mainly because it's free. 有很多选择,但是我通常使用splitcam ,主要是因为它是免费的。

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

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