Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

YouTubeStandalonePlayer.createVideoIntent Showing black screen #27

Open
saranyams9813 opened this issue May 20, 2021 · 0 comments
Open

Comments

@saranyams9813
Copy link

I have implemented youtube video playing through YouTubeStandalonePlayer.createVideoIntent. For the first time immediately after the installation of the app, youtube video is playing . But from the next time onwards StandalonePlayerActivity is blank showing a black screen. When I put my app in the background and resume again then the video starts playing

Code implementaion
Intent intent = YouTubeStandalonePlayer.createVideoIntent(activity, BuildConfig.YOUTUBE_API_KEY, videoId);
activity?.startActivity(intent);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant