WowzaMediaSystems / webrtc-examples

WebRTC Examples
https://www.wowza.com/developer/webrtc/dev-view-publish
BSD 3-Clause "New" or "Revised" License
119 stars 43 forks source link

Code examples for Angular 2+ #23

Open ctmackay opened 3 years ago

ctmackay commented 3 years ago

Is your feature request related to a problem? Please describe. No angular example

Describe the solution you'd like WebRTC Video streaming in angular 6+

Describe alternatives you've considered None.

Additional context Please provide code examples on how to use wowza web rtc video streaming in Angular.

Vis5 commented 3 years ago

I've used the Jquery example in my angular code. Just copy pasted it and made some changes. It's working as intended. Two things I changed were:

  1. npm install webrtc-adapter and change the first line in MungeSDP.js to following code:

import adapter from 'webrtc-adapter';

const browserDetails = adapter.browserDetails;



2. Change all `function ()` to `() =>`.