google / google/ExoPlayer

DAI tag set custom headers only on live

Open
#11,082 1 comment 0 reactions 1 assignee Claimed by @marcbaechinger View on GitHub
needs triage question
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.