While testing this on Firefox, and using the Android WebRTC Sample, we saw the following log line:
TypeError: iceTransport is undefined
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?
Add a null check and exit if we cannot print the selected ice candidate pair.
Testing
Run this with the Firefox + Android combo, and the error no longer gets printed.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
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.