cordova-rtc / cordova-plugin-iosrtc

Cordova iOS plugin exposing the WebRTC W3C API
MIT License
690 stars 338 forks source link

`TypeError: track must be a LocalAudioTrack, LocalVideoTrack, LocalDataTrack, or MediaStreamTrack` [Twillio-Video] #716

Closed Tech-LR closed 3 years ago

Tech-LR commented 3 years ago

YOU MUST read first!

Please use Community Forum for general technical discussions and questions.

Note: If the checkboxes above are not checked (which you do after the issue is posted), the issue will be closed, removing this checkbox will result in automatic closed issue.

Versions affected

Description

Same issue as #497 . Tried this and got error Cannot find 'RTCEAGLVideoViewDelegate' in scope.

Expected results

Since twilio-video uses getUserMedia to retrieve user's Video & Audio tracks, twilio-video should work as expected.

Actual results

TypeError: track must be a LocalAudioTrack, LocalVideoTrack, LocalDataTrack, or MediaStreamTrack

hthetiot commented 3 years ago

You should inject twilio after deviceReady and after calling cordova.plugins.iosrtc.registerGlobals(), see sample.

Also you did not provide sample NOR search for duplicate issue. Making you a "Boulet"