Open ericzhao0825 opened 1 year ago
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:
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.
@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 iosrtc
still has a meaning in some cases...
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 https://github.com/apache/cordova-ios/issues/1166
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.
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