victorb / resort

A experiment with showing live video feeds with IPFS and libp2p
https://ipfs.io/ipfs/QmaK1BRzvYU7F2taQ5qAazKKDGqSgZ9vu2vSYyw1L852ws/
81 stars 22 forks source link

Update script-libp2p.js #2

Closed CocoonCrash closed 5 years ago

CocoonCrash commented 5 years ago

Updated code to simply set srcObject to the MediaStream directly. https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL

victorb commented 5 years ago

Thanks! I think the last time I tried this, it wouldn't work in Chrome or Firefox. Can you confirm this works with both browsers?

CocoonCrash commented 5 years ago

Added 2 modifications:

Tests I run:

Had no time to start debuging all the communication part based on libp2p