DEV Community

loading...

Discussion on: Video call with WebRTC Angular and ASP.NET Core

Collapse
sebalr profile image
Sebastian Larrieu Author

Maybe you are not importing the library

Collapse
saravanakumar491993 profile image
saravanakumar491993

I did it in angular

npm install simple-peer
npm install @types/simple-peer

It only worked after i add the below script in index.html :(

<script src="https://cdnjs.cloudflare.com/ajax/libs/simple-peer/6.2.1/simplepeer.min.js"></script>

Why is that so. Please help.

Thread Thread
sebalr profile image
Sebastian Larrieu Author

You have to import simple peer in component ts. Check the GitHub

Thread Thread

Some comments have been hidden by the post's author - find out more