Skip to content Skip to sidebar Skip to footer

Using The Youtube Api Within A Fragment

I using the new YouTube API in my project. Using the example of the documentation, it works correctly: public class Test extends YouTubeBaseActivity implements YouTubePlayer.OnIni

Solution 1:

Use YouTubePlayerSupportFragment if you are only playing a YouTube video in a single support.v4.app.Fragment. This allows you to use FragmentActivity, rather than YouTubeBaseActivity.


Post a Comment for "Using The Youtube Api Within A Fragment"