//clean up ads manager
if(mAdsManager != null){
mAdsManager.destroy();
}
if(mAdRequest != null) {
mAdRequest.setContentProgressProvider(null);
mAdRequest = null;
mContentProgressProvider = null;
}
// create a ContentProgrestestsProvider
ContentProgressProvider mContentProgressProvider = new ContentProgressProvider() {
@Override
public VideoProgressUpdate getContentProgress() {
Log.d(TAG, "contentProgressProvide.getContentProgress()");
if(mVideoPlayer == null){
Log.d(TAG, "VideoProgressUpdate.VIDEO_TIME_NOT_READY");
return VideoProgressUpdate.VIDEO_TIME_NOT_READY;
}
if(mIsAdPlayerActive || mVideoPlayer.getDuration() <= 0){
Log.d(TAG, "VideoProgressUpdate.VIDEO_TIME_NOT_READY");
return VideoProgressUpdate.VIDEO_TIME_NOT_READY;
}
VideoProgressUpdate update = new VideoProgressUpdate(mVideoPlayer.getCurrentPosition(), mVideoPlayer.getDuration());
Log.d(TAG, "VideoProgressUpdate: "+update);
return update;
}
};
--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+unsubscribe@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at

Hi Gourav,
Thanks for your message. However, it seems like your concern is the same as your previous email with the subject: "CurrentProgressProvider", which is currently being handled. With this, could you confirm that this is the same, so I can tag this one as duplicate and we'll continue our conversation on the other thread?
Regards,
Sherwin Diesta
IMA SDK Team