YouTube intent, error 400

后端 未结 6 1734
盖世英雄少女心
盖世英雄少女心 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 14:51

    Youtube 400 network error: Turn off and on Clear data and cache

    Settings applications manage applications clear data and cache

    You will need to log in each time. Unfortunately I still can not post but can share comment on g+

    0 讨论(0)
  • 2021-01-17 14:51

    Please chaeck video id is proper parse in json and it perfectly going with intent

    0 讨论(0)
  • 2021-01-17 14:58

    On loadvideo don't put:

    loadvideo(https://www.youtube.com/watch?v=gQy4I5y1ldg12)
    

    just put

    loadvideo(gQy4I5y1ldg12);
    
    0 讨论(0)
  • 2021-01-17 15:00

    Click the share button below the youtube video -> It will show the link -> Use this link.

    Note: Not use the url of youtube

    Screenshot for sample link sharing:

    0 讨论(0)
  • 2021-01-17 15:13

    It seems that this is a common problem with the youtube app, also described here and here. The only answer I found is to log out of the youtube app and then log in again.

    0 讨论(0)
  • 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.

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