Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to embed and play a YouTube video in android

Can we watch youtube video in android app? I mean if we have link to video on youtube, can we play it in VideoView or another widget? Any ideas about it?

like image 669
user1021984 Avatar asked Feb 18 '12 14:02

user1021984


Video Answer


1 Answers

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! :)

like image 143
Ravi Avatar answered Sep 21 '22 05:09

Ravi