Check if youtube video player is playing (Android Studio)

133 Views Asked by At

    YouTubePlayerView youtubeplayerview;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main3);

        youtubeplayerview.addYouTubePlayerListener(new AbstractYouTubePlayerListener() {
            @Override
            public void onReady(@NonNull YouTubePlayer youTubePlayer) {
                youTubePlayer.cueVideo("videoId", 0);

            }

        });
    }
}

How to check if youtube video player is playing in android studio? and How do I get to the virtual pause button on a youtube video.

I couldn't find any examples.

0

There are 0 best solutions below