I need to load a video in youtube player in an fragment (Consider it as Fragment A) as a header to a gridview in a fragment.Video is loading fine without any issue. But if i click on a grid item and loads seperate activity (Consider it as Activity B) in which there also, I am having youtube video player. It is playing fine in that activity. But when i come back to fragment from the activity B , now youtube player is not playing. Simply black screen is displaying.
FYI, I am having Fragment A in slidingMenu activity and activity B as activity.
For Fragment i am using youtubesupportfragment and in activity i am using YoutubeBaseActivity
来源:https://stackoverflow.com/questions/37990973/android-youtube-player-in-fragment-and-activity-causes-black-screen