public void onComplete(AVPlayer aVPlayer) {
   try {
     ViewGroup viewGroup;
     if (this.a.isFullScreen()) {
       viewGroup = (ViewGroup) aVPlayer.getBackGroundLayout().getParent();
       if (viewGroup != null) {
         viewGroup.removeView(aVPlayer.getBackGroundLayout());
       }
     } else {
       viewGroup = (ViewGroup) aVPlayer.getParent();
       if (viewGroup != null) {
         viewGroup.removeView(aVPlayer);
       }
     }
   } catch (Exception e) {
     Log.debug(Constants.RENDERING_LOG_TAG, "Problem removing the audio relativelayout", e);
   }
 }
 public void onComplete(AVPlayer aVPlayer) {
   MRAIDAudioVideoController.this.setBusy(false);
   try {
     ViewGroup backGroundLayout = aVPlayer.getBackGroundLayout();
     if (backGroundLayout != null) {
       ((ViewGroup) backGroundLayout.getParent()).removeView(aVPlayer.getBackGroundLayout());
     }
     aVPlayer.setBackGroundLayout(null);
   } catch (Exception e) {
     Log.debug(
         Constants.RENDERING_LOG_TAG,
         "Problem removing the video framelayout or relativelayout depending on video startstyle",
         e);
   }
   synchronized (this) {
     if (MRAIDAudioVideoController.this.videoPlayer != null
         && aVPlayer
             .getPropertyID()
             .equalsIgnoreCase(MRAIDAudioVideoController.this.videoPlayer.getPropertyID())) {
       MRAIDAudioVideoController.this.videoPlayer = null;
     }
   }
 }