Android-playing videos

Can someone tell me how does the imdb app manage to play trailers on android. I know we can play 3 gp but then it is of very low quality.I would want to play videos from youtube or other sources without using a webview I am not sure if this question belongs here but it would be great if you could point me in the right direction

Answers


Check out this project for playing Youtube video: android-youtube-player

You can easily modify OpenYouTubePlayerActivity to play other the streaming urlĀ“s aswell.


You can also play/stream mp4 video.

example:

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.html


Yes, you able to play video via url by using videoView controll. Thanks


Need Your Help

Defining Maps, Sets, etc and then passing/getting them

java map pass-by-reference

I've read that when you define a {Map, Set, Etc} it is good practice use the interface name as so: