When I use custom playback, and also in Advanced sample Google IMA app, I could see below code snippet which is actually exposing Ad media url of the Ad to the app. Though not directly via function but indirectly I'm able to access Ad medai Url. Will this method always returns valid media Url of Ad being played?
mVideoAdPlayer = new VideoAdPlayer() {
@Override
public void playAd() {
mIsAdDisplayed = true;
mVideoPlayer.play();
}
@Override
public void loadAd(String url) {
mIsAdDisplayed = true;
mVideoPlayer.setVideoPath(url); // Ad media url
}
@Override
public void stopAd() {
mVideoPlayer.stopPlayback();
}
@Override
public void pauseAd() {
mVideoPlayer.pause();
}
@Override
public void resumeAd() {
playAd();
}
};
Please let me know, my use case is to fetch media Ad Urls for creative identification.