Youtube intent starts in browser android

后端 未结 2 465
长发绾君心
长发绾君心 2021-01-22 23:37

I have followed a tutorial on how to use the youtube gdata. Populating a listview with videos from youtube and a onclick. The source code is availeable from this site: http://bl

相关标签:
2条回答
  • 2021-01-23 00:17

    It seems as though the URL chosen in the example source you linked isn't a good one to use for this purpose. If you look through the source of GetYoutubeUserVideosTask, you'll notice that the value they pull out of the JSON for url is the player->default or player->mobile value from each object in the items array, which does just load a web page if you click on it.

    You might try modifying the example to pull out one of the content urls from that JSON object instead, which should load the video player directly.

    HTH

    0 讨论(0)
  • 2021-01-23 00:19

    The Youtube app is only supposed to be used with special ROMs. So you can't run them in an OpenSource-ROM, like the one used in the Emulator, unfortunately.

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