Exemplo n.º 1
0
 @Override
 public void onClick(View view) {
   if (mPlayer != null && mPlayer.isInitialized() && mPlayer.isLoggedIn()) {
     if (mPlayerStatusTask.getStatus().equals(AsyncTask.Status.PENDING)) {
       mPlayerStatusTask.execute();
     }
     mPlayer.getPlayerState(playPauseButtonPressedPlayerStateCallback);
   }
 }
Exemplo n.º 2
0
 private boolean isLoggedIn() {
   return mPlayer != null && mPlayer.isLoggedIn();
 }