How to run a video hosted on YouTube or a private server in Android? -


I have about 3 videos that I can not install on DROID due to my huge size with my app. Now we have decided to host them on a private server or YouTube. How do I play these videos in Android? If you want to use a private server, you can only use Android's media features, you can do gaming.

Playing from a file or stream "You can use MediaPlayer's setDataSource to point to a remote location:

  myMediaPlayer.setDataSource (myContext," http: //www.example. Com / myvideo.3gp ");  

If you prefer to use YouTube, the problem is that YouTube's original format is FLV, which I do not think is supported by the Media Player (as opposed to Flash Support Android Not fully available, even with the founder of Flash Player, if I'm wrong then someone corrects me) YouTube offers the mobile version, but the resolution is really bad and that Do not believe high and endless devices in the stove. Apparently (for the original app) are the versions of iPhone and Android, but I have not found any way to get the URL.

Your best bet is with a private server.