youtube / yt-android-player

Apache License 2.0
130 stars 88 forks source link

YouTubeStandalonePlayer.createVideoIntent Showing black screen #27

Open saranyams9813 opened 3 years ago

saranyams9813 commented 3 years ago

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);