I have a media3 exoplayer that uses an M3U8 URL (a playlist file for streaming video, like HLS) and the video content supports multiple audio languages (e.g., English, Spanish, French).
When a user switches the video's audio track (e.g., from English to Spanish), I want to update the advertising parameters to tell my ad server the user's current language. This is usually done by adding a language code (like es for Spanish) to a key, often called cust_params (custom parameters).
Right now, to send the new language code, I have to:
The result: A disruptive user experience. The video playback pauses, the player flashes or reloads, and there's a delay.
I are looking for an existing method or feature in video players or ad integration libraries (like Google IMA SDK) that allows me to change the ad request parameters without reinitializing the entire video player.
The Ideal Scenario ✨In short, I want to update your ad server's targeting information "on the fly" after a user changes the language, without causing the video to stop and reload.
Hi,
Thank you for contacting the IMA SDK Support Team.
We understand the difficulty you face when needing to update ad targeting parameters (like the language in cust_params) because it currently forces you to stop and reinitialize your ExoPlayer, leading to a poor user experience.
You are asking for a way to update ad targeting on the fly for the next ad opportunity without interrupting video playback.
To assist with troubleshooting, could you please provide the following details:
These details will help us find a non-disruptive solution for updating your ad request parameters for future ad breaks.
Kindly provide the requested details via reply to the author option.
If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:
1. Navigate to
2. Fill out all fields, and attach your file(s).
3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.
![]() |
IMA SDK Team |
[2025-11-18 14:39:55Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01vTkzC:ref" (ADR-00339623)