muaz-khan / Chrome-Extensions

WebRTC chrome extensions for screen sharing, screen recording, file sharing, youtube+audio sharing, etc.
MIT License
1.09k stars 524 forks source link

Invalid state when running demo from codepen.io #37

Open slifin opened 6 years ago

slifin commented 6 years ago
screen shot 2018-05-23 at 14 11 45

https://codepen.io/slifin/pen/erobKm?editors=1111

muaz-khan commented 6 years ago

getScreenId will not work on any iframe. (reason: postMessage limitation)

Screen-Capturing.js? An ifarme must allow video permissions (maybe):

<iframe allow="microphone camera"></iframe> 

So codepen or jsfiddle both need to set above permissions.

You should test screen-capturing.js using github-pages. Github pages supports HTTPs both for free or custom domains.