Skip to content

Releases: patrick-tresp/cordova-plugin-iosrtc

8.0.4-patched

03 Nov 16:27
Compare
Choose a tag to compare

8.0.4

03 Nov 15:34
Compare
Choose a tag to compare

I have addressed the issue of Null Pointer Exceptions in the iosrtcPlugin#RTCPeerConnection_RTCRtpSender_replaceTrack() method. Null Pointer Exceptions can occur when attempting to access properties or methods on objects that are nil or null, leading to unexpected crashes in the code. To enhance the stability and reliability of the code, I have made the following changes:

Early Existence Checks: I have introduced early existence checks to ensure that critical objects, such as pluginRTCPeerConnection and pluginRTCRptSender, are not nil before attempting to use them.
Graceful Handling of Missing Objects: In case any of these objects are not found, I now emit error messages with informative details to assist with debugging and troubleshooting.
Improved Code Readability: The code has been restructured to enhance readability and reduce nesting, making it easier to follow and maintain.
Safety for Optional Values: I have utilized Swift's optional binding (if let) to safely unwrap and use optional values like pluginMediaStreamTrack.