Ejemplo n.º 1
0
 // handle error if player doesn't not initialize successfully
 @Override
 public void onInitializationFailure(
     YouTubePlayer.Provider provider, YouTubeInitializationResult youTubeInitializationResult) {
   if (youTubeInitializationResult.isUserRecoverableError()) {
     youTubeInitializationResult.getErrorDialog(this, RECOVERY_DIALOG_REQUEST).show();
   } else {
     String errorMessage = "onInitializationFailure of YouTubeFragment";
     Toast.makeText(this, errorMessage, Toast.LENGTH_LONG).show();
   }
 }
Ejemplo n.º 2
0
 @Override
 public void onInitializationFailure(
     YouTubePlayer.Provider provider, YouTubeInitializationResult errorReason) {
   if (errorReason.isUserRecoverableError()) {
     errorReason.getErrorDialog(this, RECOVERY_DIALOG_REQUEST).show();
   } else {
     String errorMessage = String.format(getString(R.string.error_player), errorReason.toString());
     Toast.makeText(this, errorMessage, Toast.LENGTH_LONG).show();
   }
 }
Ejemplo n.º 3
0
 @Override
 public void onInitializationFailure(Provider arg0, YouTubeInitializationResult errorReason) {
   if (errorReason.isUserRecoverableError()) {
     // errorReason.getErrorDialog(this, RECOVERY_DIALOG_REQUEST).show();
     Toast.makeText(this, "user recoverable youtube ERROR", Toast.LENGTH_LONG).show();
   } else {
     Toast.makeText(this, "youtube ERROR", Toast.LENGTH_LONG).show();
   }
 }
Ejemplo n.º 4
0
 @Override
 public void onInitializationFailure(Provider arg0, YouTubeInitializationResult error) {
   // TODO Auto-generated method stub
   Toast.makeText(this, "Oh no! " + error.toString(), Toast.LENGTH_LONG).show();
 }
Ejemplo n.º 5
0
 @Override
 public void onInitializationFailure(
     YouTubeThumbnailView thumbnailView, YouTubeInitializationResult errorReason) {
   final String errorMessage = errorReason.toString();
   Toast.makeText(mContext, errorMessage, Toast.LENGTH_LONG).show();
 }
 @Override
 public void onInitializationFailure(
     YouTubePlayer.Provider provider, YouTubeInitializationResult errorReason) {
   Toast.makeText(this, errorReason.toString(), Toast.LENGTH_LONG).show();
 }