-
Notifications
You must be signed in to change notification settings - Fork 90
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
ImaAdsLoader.getAdsLoader() is returning a null value in media3 #152
Comments
Hello @ThirupathiiBalaji , Can you confirm which IMA Android integration you are using? Standard implementation or ExoPlayer-IMA extension? The AdsLoader should be obtained like this for a standard implementation:
Please let me know if you have additional questions. Thank you, |
Hi @Kiro705 , I work on a project that uses the ExoPlayer-IMA extension. As per our management requriement, in order to provide a good user experience, we have to skip the current advertisement without any user interaction in the scenario above. however, ImaAdsLoader.getAdsLoader() always returns null value. |
Hello @ThirupathiiBalaji , Thank you for clarifying that you are using the Exoplayer-IMA extension. You should obtain a reference to the AdsLoader when it is constructed. See this section from the ExoPlayer example for details. That said, the IMA SDK only allows the use of AdsManager.skip() to be used if the ad is skippable, and IMA does not render its own skip button. Please let me know if you have any questions. Thank you, |
Hi @Kiro705 ,
|
Hello @ThirupathiiBalaji , I cannot say if the behavior of As for the actual problem, are you saying closing the pop-up always triggers an ad break? Or that the movie is playing while the share pop-up is present, and sometimes an ad break triggers during this time? I am not aware of any IMA functionality that would trigger an ad break based on pop-up behavior. If it is the other case, a solution could be to pause the movie while showing the pop-up. |
Hi @Kiro705 Then we will reconstruct the player with an updated new URL, why we are doing this because in-between onPause and onResume is called the previous URL might be expired so we are reconstructing the player with a new URL since we are reconstructing the player, the ad will be automatically triggered but it will affect our app's user experience so we used to skip that particular ad without any user interaction even though if the ad is non-skippable Since then we updated to Media3 we can't able to skip the ad as we did in exoplayer 2.11, this will affect our app user experience. So kindly offer us a solution to fix this issue. |
Hello @ThirupathiiBalaji , A recent change introduced in IMA Android v3.32.0 only allows skipping the ad when it is defined as skippable, and IMA does not render a skip button. However, right now there is not a publicly available option to prevent IMA from rendering the skip button. To summarize, I think the use-case you are describing is not currently supported by the IMA SDK. There are some updates planned that will offer more customizability for the ad UI, and control of when ads are skipped. However, I do not have any timelines for when that might be available. I would recommend reaching out on the IMA technical forum to make a feature request to support your use-case. Thank you, |
Hi @Kiro705 |
Hello @ThirupathiiBalaji , The ExoPlayer IMA extension does not surface a way to access the IMA CuePoints. Typically this can be done with AdsManager.getAdsCuePoints(). However, the extension does access this information, and renders UI elements for the ad breaks on the timeline. See screenshot. If you need to access the ad cue-points, I would recommend not using the extension for your IMA integration. Thank you, |
Hi @Kiro705 |
Hello @ThirupathiiBalaji , The ExoPlayer-IMA extension is built to provide an easy to set up integration with ExoPlayer and IMA SDK. Such that it does things like cuepoints on the progress bar itself. For a more custom integration, like the one you are describing, I would recommend not using the extension. An integration similar to the AdvancedExample would highlight this approach. |
Problem statement:
The pre-roll or mid-roll advertisement plays when the app minimizes and then the onresume function calls again. To fix this, we must skip the specific ad to prevent repeat playback of the advertisement. The only way to resolve this situation is to use admangaer. However, ImaAdsLoader getAdsLoader() is returning a null value in media3. Kindly help us to fix this null value issue or provide us alternative solution to skip video ad
Note: This issue occurs when we migrating to media3 1.4.1 from exoplayer 2.11
The text was updated successfully, but these errors were encountered: