Blancduman / mediasoup-client-flutter

Flutter version of the mediasoup-client library.
MIT License
105 stars 58 forks source link

RTCVideoView breaks on aspect ratio change #55

Closed ollyde closed 2 years ago

ollyde commented 2 years ago

I'm not sure if it's this lib or Flutter WebRTC so linking the reference to the issue here.

https://github.com/flutter-webrtc/flutter-webrtc/issues/1012

ollyde commented 2 years ago

For anyone else who got stuck, when the size changes or aspect and new consumer is fired, you have to set that stream again (srcObject = consumer.stream).

I found that sometimes I have to reinitialize it (The WebRtcRender)