ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

SNI support

Open hare989 opened this issue 9 years ago • 2 comments

Hello,

How would ExoPlayer work with servers which implements Server Name Indication?

hare989 avatar Apr 12 '17 11:04 hare989

If you're using DefaultHttpDataSource I guess it should just work: it uses java.net.HttpURLConnection and, according to this best practices page, the HttpsURLConnection subclass supports SNI since Android 2.3 (API level 9, which is lower than ExoPlayer's minimum API version). Have you tried it, and if so was there some issue?

andrewlewis avatar Apr 13 '17 07:04 andrewlewis

Hello,

Thanks for reply. We have tested streaming in ExoPlayer from two secured hosts served from one IP address, both having different SSL certificates, and we can confirm that ExoPlayer/ DefaultHttpDataSource/java.net.HttpURLConnection SNI support is working fine when establishing secure connection to wanted hostname.

hare989 avatar Apr 19 '17 13:04 hare989