YouTube intent, error 400

后端 未结 6 1787
盖世英雄少女心
盖世英雄少女心 2021-01-17 14:21

I found that I can start a YouTube video in stock YouTube player this way:

Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(\"vnd.youtube:U79wVTdnMpw\"));         


        
6条回答
  •  不要未来只要你来
    2021-01-17 15:15

    I found the answer on this Google product forums which helped to solve my problem - which was exactly the problem you're experiencing :)

    SOLUTION: Give ONLY the YouTube ID and not the entire YouTube URL to the loadVideo() function.

提交回复
热议问题