Using OpenTok is there a way publish a video stream whose source is not a camera? 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, or any other framework, doesn't get the video stream directly from the camera. 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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top