Embed Youtube video inside an Android app

后端 未结 9 1255
野性不改
野性不改 2021-01-29 23:01

I\'m using a WebView for displaying embedded Youtube video and that works on Galaxcy S2 (OS 2.3.5) and doesn\'t on Nexus S (OS 2.3.4), all I get is white screen without any vide

9条回答
  •  说谎
    说谎 (楼主)
    2021-01-29 23:43

    there is an official YouTube Android Player API wich you can use. This is a bit more complicated but it is working better than other solutions using webclients.

    First you must register your app in Googles API Console. This is completely free until your app gets over 25k request a month (or something like that). There are complete anf great tutorials under the link. I hope you can understand them. If not, ask! :)

提交回复
热议问题