protected void onFreeWheelEvent(IEvent event) {
   Log.i(CLASSTAG, event.getType());
   if (event.getType().equals(adConstants.EVENT_REQUEST_COMPLETE())) {
     Log.d(CLASSTAG, "ad request complete");
     try {
       Thread.sleep(5000);
     } catch (InterruptedException e) {
     }
     this.prerollSlots =
         adContext.getSlotsByTimePositionClass(adConstants.TIME_POSITION_CLASS_PREROLL());
     this.postrollSlots =
         adContext.getSlotsByTimePositionClass(adConstants.TIME_POSITION_CLASS_POSTROLL());
     this.showDisplayAd();
     this.prepareMidRoll();
     this.playAdSlot(adConstants.TIME_POSITION_CLASS_PREROLL());
   } else if (event.getType().equals(adConstants.EVENT_SLOT_ENDED())) {
     String customId = (String) event.getData().get(adConstants.INFO_KEY_CUSTOM_ID());
     ISlot endedSlot = adContext.getSlotByCustomId(customId);
     if (endedSlot.getTimePositionClass() == adConstants.TIME_POSITION_CLASS_PREROLL()
         || endedSlot.getTimePositionClass() == adConstants.TIME_POSITION_CLASS_POSTROLL()) {
       this.playAdSlot(endedSlot.getTimePositionClass());
     }
   } else if (event.getType().equals(adConstants.EVENT_REQUEST_CONTENT_VIDEO_RESUME())) {
     this.resumeMainVideo();
   } else if (event.getType().equals(adConstants.EVENT_REQUEST_CONTENT_VIDEO_PAUSE())) {
     this.pauseMainVideo();
   }
 }