Video Callbacks - AdView

Setting up VideoContentListener

Set up your listening events for video as below:

VideoContentListener Example

// display Rect callbacks
VideoContentListener spotVideoListener = new VideoContentListener() {
             
            @Override
            public void onProgress(int totalDurationInMsec, int positionInMsec) {
                Log.i(TAG, "onProgress: + " total time = " + totalDurationInMsec + " position = " + positionInMsec);
            }
                      
            @Override
            public void onCompleted() {
                Log.i(TAG, "onCompleted");
            }
                      
            @Override
            public void onPlayerError() {
                Log.i(TAG, "onPlayerError");
            }
                      
};
 
videoContentController.setEventsListener(spotVideoListener)
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request