DAI tag set custom headers only on live
- 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
Assessment
This issue has not been assessed yet.