-
-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Twilio VideoJs adaptive simulcast undefined error, because of missing width and height properties from MediaTrackSettings #762
Comments
MediaStreamTrack GetSettings is not implemented in iosrtc for now. See source links bellow.
We can implement height and width, but you have to understand that this cordova plugin is only useful if you want to support iOS 14.5 and bellow, after that you don't need that plugin as ios webview support Webrtc after that. Related: |
@hthetiot WebView's WebRTC implementation has some issues. For example it's not possible to manage AVAudioSession from application, since WebView is working in separate process on iOs. So |
Actually we tried the the built in WebKit after 14.5 and it was horrible we had to revert back. it works fine on Safari but the performance was horrible in WkWebView. |
Oh actually it was not the performance it was the fact that WebKit always prompts the user for permission for microphone and camera even after they just give it. The other problem is probably somewhere in twilio video there is a duplicate audio track causing an echo on the user side. |
@samgabriel workaround for repetitive permission request is mentioned in apache/cordova-ios#1166 |
Glad to hear that our implementation is better on WkWebview, we have so much more Optimisations that stay in PR like #748 and #623 #427. I will try to take a look this weekend and pass the resolution from MediaStream or tracks from swift to thr webview. |
YOU MUST read first!
Please use Community Forum for general technical discussions and questions.
extra/renderer-and-libwebrtc-tests.js
file).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
width and height properties are missing from MediaStreamTrack.getSettings().
There is undefined error coming from twilio video js when setting preferredVideoCodecs to adaptive simulcast.
Twilio is checking var _a = track.getSettings(), width = _a.width, height = _a.height; var trackPixels_1 = width * height;
Steps to reproduce
set twilio preferredVideoCodecs to 'auto', then publish a local video
Expected results
able to publish a local video track with adaptive simulcast enabled
Actual results
twilio throws undefined error
The text was updated successfully, but these errors were encountered: