Hey guys
Thanks for taking the time to help me and I apologize in advance for the long message.
My future plan is with the two way chat application I have created , I have the client and I have the other which is the server laptop I want to set up a Fake-camera or device so when the client answers the call it sees a recorded video file instead of the real camera for testing purposes . Then I plan to maybe use google chrome internals for stats.or some chrome developer tools and compare different scenarios.
I have one laptop which will be the client laptop (windows 8) and the other laptop which will be the server/Fake camera (windows 8.1) . Most places I have looked online for this type of tutorial they seemed to be using linux for this hence my installation of virtual-box.
Since I am new to webrtc , Im finding it hard figuring out how to set up the fake camera and where everything goes, im just confused how to do this. I have looked around but haven't found anything in beginners terms..
So far I gatherd that to achieve this would be these following steps correct me if Im wrong and missing anything
I need to set up a v4l2loopback deivce and v4l2_file_player
Q the best way to achieve this ie for beginners ?
Then set up the chrome flags on my browser so when I start the browser it looks for the fake device then points to the video file I want to play,. I was reading that these flag command will achieve this
| --use-fake-device-for-media-stream ⊗ | Use fake device for Media Stream to replace actual camera and microphone. ↪ |
| --use-fake-ui-for-media-stream ⊗ | Bypass the media stream infobar by selecting the default device for media streams (e.g. WebRTC).
|
| ---use-file-for-fake-video-capture ⊗ | Use an .y4m file to play as the webcam. |
Q Which flags do I need to use to achive this do I use all 3 ? and how to tell the browser to use them in linux ? do these flags work best in chrome or chromium?
Q Will this test scenario work with my simple application?
Below is my application and set up
My Application
I created a 2 person chat-room using the peer js framework. so in my application I am using what can be described a "Sneeker-net" for signaling , ie I am manually sharing a peer id with the person I want a chat with via giving them my id i a email lets say. its use the stun and turn servers to make our connections its a simple peer to peer chat with Html5 and JavaScript which uses the peerjs API. This two way application works fine when locally ran off my wamp server or hosted live online.
My set up
I have two laptops both windows machines 8 and 8.1. I have virtualbox set up the windows 8.1
Before virtual box set up I was using wamp server host locally. Now on my virtual box I will set up a Lamp server to view localhost on the other machine.
Many thanks to anybody who takes time out to help me as I said im very grateful and only a beginner at WebRTC. and apologize is this posted twice.
Cheers webrtc newbie