Code:

Intent intent = YouTubeStandalonePlayer.createVideoIntent(this, DEVELOPER_KEY, VIDEO_ID); startActivity(intent); 

Logcat:

alt text

    1 answer 1

    He says that there is no class, have you connected with YouTube?

    • > Says there is no class. And what class is needed here? - kandi
    • YouTubeAndroidPlayerApi developers.google.com/youtube/android/player/downloads - AndroidDev
    • import com.google.android.youtube.player.YouTubeStandalonePlayer; - for standalone this is enough - kandi
    • Look at the error, he just says that there is no this class :) - AndroidDev
    • By the way, I used YouTube PlayerView and there was a problem that the player was not initialized until such time as the YouTube YouTube client was installed. I had to add a check for the presence of fresh YouTube. - AndroidDev