RTCVideoTrack removeRenderer array crash

Max

Administrator
Staff member
Please also note we does not change WebRTC package in this build (only version is bumped)
1703820350759.png

You should update FPWCSApi2 and FPWCSApi2Swift packages to 2.6.120 too because those packages contains actual changes (checking if renderer is created before deleting it).
 

andrew.n

Member
Please also note we does not change WebRTC package in this build (only version is bumped)
View attachment 3773
You should update FPWCSApi2 and FPWCSApi2Swift packages to 2.6.120 too because those packages contains actual changes (checking if renderer is created before deleting it).
Yes, I updated both :) I just wanted to show you that I did it.
 

andrew.n

Member
@Max the issue happens if you call stream.stop() and after that you call session.disconnect().
If you call first stream.stop() and after that session.disconnect() then it crashes.

It should work both ways, right? :-?
Also, makes more sense to stop the stream and then disconnect from the session?
 

Max

Administrator
Staff member
the issue happens if you call stream.stop() and after that you call session.disconnect().
If you call first stream.stop() and after that session.disconnect() then it crashes.
We tested in Media Devices Swift and Two Way Streaming Swift:
- click Connect - Publish - Disconnect before PUBLISHING status: no crash
- click Connect - Publish - Stop - Disconnect: no crash too
So we need a code to reproduce.
 
Top