Using the YouTube API within a fragment

前端 未结 1 2109
-上瘾入骨i
-上瘾入骨i 2020-12-09 22:47

I using the new YouTube API in my project. Using the example of the documentation, it works correctly:

public class Test extends  YouTubeBaseActivity impleme         


        
相关标签:
1条回答
  • 2020-12-09 23:14

    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.

    0 讨论(0)
提交回复
热议问题