Exemplo n.º 1
0
 public void liveCardUnpublish() {
   if (liveCard != null) {
     liveCard.getSurfaceHolder().removeCallback(this);
     liveCard.unpublish();
   }
   liveCard = null;
 }
Exemplo n.º 2
0
 @Override
 public void onDestroy() {
   if (mLiveCard != null && mLiveCard.isPublished()) {
     mLiveCard.getSurfaceHolder().removeCallback(mTimerDrawer);
     mLiveCard.unpublish();
     mLiveCard = null;
     mTimerDrawer.getTimer().reset();
   }
   super.onDestroy();
 }