I am able to achive it in firefox by folowing below steps:
- make my server
https
- append my domain to the user preference
media.getusermedia.screensharing.allowed_domains
inabout:config
to whitelist it for screen sharing. - use constraint like
{video: {mediaSource: "screen"}}
,
but in chrome, I am getting totally lost.
most places keep telling: You'll need to first enable the flag called Enable screen capture support in getUserMedia() in chrome://flags. ( but I am unable to find this flag anywhere)
I have checked Muaz Khan's screen share plugin, it works great, but afraid that it is coupled with other WebRTC experiment projects, and I am not sure how to customize the plugin to my project.
At this junction, I have come to an understanding that, without plug-in or flags, cannot capture the desktop mediastream.
so what I would like to know is, what is the flag I must enable/ what must be part of a plug-in written from scratch to make chrome support capturing desktop the same way it allows us to capture camera.