ranjit
ranjit

Reputation: 25

screen sharing with twilio without extension

In my web applicatio i need functionality to share screen in video call. i'm using twilio and my video call functionality is working fine. i have seen link from twilio to share screen. (https://www.twilio.com/blog/2018/01/screen-sharing-twilio-video.html) but i need to develop chrome extension for screen sharing in chrome. is there any way by which i can develop screen sharing without extension ?

Upvotes: 2

Views: 1601

Answers (1)

philnash
philnash

Reputation: 73029

Twilio developer evangelist and author of that blog post here.

As described in the blog post, to add screen sharing functionality to your video call in Chrome, you need to create and release an extension. How to build that extension is described in this blog post on screen capture in Chrome.

This is the only way to do it right now.

However, the Chrome team are working on standardising their approach and releasing support for the getDisplayMedia API. This is already supported by Microsoft's Edge browser. It works much the same as getUserMedia:

  navigator.mediaDevices.getDisplayMedia().then(returnedStream => {
    stream = returnedStream;
    document.getElementById('screen').srcObj = stream;
  })

Look out for this coming to Chrome soon.

Upvotes: 2

Related Questions