SRGSSR / pillarbox-android

The modern SRG SSR Pillarbox player targeting Android platforms
https://android.pillarbox.ch/api
MIT License
13 stars 1 forks source link

POC : OkHttp DataSource #60

Open StaehliJ opened 1 year ago

StaehliJ commented 1 year ago

According to the official Exoplayer documentation about Network stacks, OkHttp may improve network performance especially with the usage of CDN's.

Most of the SRG contents are stored on a Akamai CDN, maybe using OkHttp extension may improve the performances.

StaehliJ commented 1 year ago

Cronet on paper should improve response time when loading media from url. Bottle neck is when using urn that passe by retrofit and OkHttp, we can improve this further by using Cronet with Retrofit with some limitiations and/or using Ktor with a CronetClient.