Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAI tag set custom headers only on live #11082

Open
BejanCorneliu opened this issue Mar 24, 2023 · 1 comment
Open

DAI tag set custom headers only on live #11082

BejanCorneliu opened this issue Mar 24, 2023 · 1 comment

Comments

@BejanCorneliu
Copy link

BejanCorneliu commented Mar 24, 2023

Hello,

In my aplication i'm using DAI tag and i want to intercept headers and add some custom headers only when playing live ; When ads rolling no custom headers.

I use OkHttpClient and on addNetworkInterceptor or addInterceptor i can set those custom headers but i can not figure out when i'm live and when ads are playing. But if neccesary i can change it

I don't receive any stream segment specific on
chain.request().url.pathSegments

On both cases ( live / ads ) i receive on every intercept same manifest url

Only on transfer listeners i can se with specific urls when exoplayer user our live mp4 segments or google when playing ads

I need to set custom headers only for live ( mp4 ) request before.
How can i make this verification before each request?

Thanks

@tianyif
Copy link
Contributor

tianyif commented Mar 27, 2023

Just adding a side note for the future issues, we will begin to triage the issues in media repository (new home of ExoPlayer) only, so please make sure the new issues are filed in that repository. This one can continues staying in ExoPlayer repository though.

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@marcbaechinger @BejanCorneliu @tianyif and others