awslabs / amazon-kinesis-video-streams-webrtc-sdk-js

JS SDK for interfacing with the Amazon Kinesis Video Streams Signaling Service.
https://awslabs.github.io/amazon-kinesis-video-streams-webrtc-sdk-js/examples/index.html
Apache License 2.0
286 stars 141 forks source link

Add null check for sender.transport.iceTransport #255

Closed sirknightj closed 1 year ago

sirknightj commented 1 year ago

What is the issue?

I added a debug print statement to print the selected ICE Candidate pair. It seems that this method of printing the selected pair is not available in Firefox, and the property is not available, resulting in a null pointer exception.

This only appears in Firefox. Chrome and Safari work fine.

How was this fixed?

Testing

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.