Mo Sadeghi
Mo Sadeghi

Reputation: 519

Can't get stream from chrome extension

I have created a very simple implementation of screen sharing using chrome extension. The problem is that when I try to test it using serve command, it works fine when I open localhost:3000. But if I try to host the web application from IIS on my PC and set a custom binding like: mytest.com it doesn't work anymore and the returned streamId from chrome.desktopCapture.chooseDesktopMedia method is null. Any idea what's causing this issue?

Upvotes: 1

Views: 262

Answers (2)

Mo Sadeghi
Mo Sadeghi

Reputation: 519

The problem in my case was that I had to use HTTPS URLs only. Chrome doesn't accept HTTP for security reason. So, I changed my local URL to https://mytest.com and it works.

Upvotes: 0

Related Questions