Getting an error stating "an error occurred while initializing the YouTube player" when trying to launch activity consisting of youtube player/fragment inside a tab activity/ ActivityGroup. the same piece of code works in an independent app not having Tab/Activity Group on the same device. Same set of code is working in dummy app but not working in main app (with tabs). The app does have permissions, also have cleaned it and build it again but still facing the same issue. could some one please help?
Asked
Active
Viewed 196 times
1
-
it would be very helpful if you share some part of your codes for more clarification. – user3473830 Oct 15 '14 at 21:10
-
Have you checked the logs? It may happen because a Youtube video should be on a YouTubeBaseActivity and not on a fragment. – Nicolás Arias May 26 '15 at 23:26
-
You can find a good workaround here http://stackoverflow.com/questions/26458919/integrating-youtube-to-fragment. You just need a newInstance method on your fragment for the adapter on the tabbed activity. – Nicolás Arias Jun 01 '15 at 01:27