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

Android SDK for interfacing with Amazon Kinesis Video Streams Signaling Service.
Apache License 2.0
58 stars 37 forks source link

Question: How to disable TURN? #39

Closed yuma-m closed 3 years ago

yuma-m commented 3 years ago

I want to disable TURN in Android SDK. Will Android SDK use P2P only by commenting out the code block below?

https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-android/blob/df938e21d225a6183426d273f9cf059d7c73490f/src/main/java/com/amazonaws/kinesisvideo/demoapp/activity/WebRtcActivity.java#L366-L378

Environment

MushMal commented 3 years ago

Casually looking at it it should disable TURN as you are removing the ICE servers. Make sure you are not removing the STUN server which will be needed for the reflexive peer candidates.

yuma-m commented 3 years ago

Thank you @MushMal

I confirmed Android SDK will not send relay candidates by removing the code block above.