How to play this video in VideoView? - android

I want to create an application to play/stream videos, I know how to play/stream videos when I have the link but can somebody tell me how can I play this video e.g http://gorillavid.in/orophd79hi8o using VideoView or other method?? Thanks

Why not use a WebView for the job? They do it just fine.
Just remember to enable plugins:
webView.getSettings().setPluginState(WebSettings.PluginState.ON)

Related

VideoView or WebView in YouTube Android App

Now this is a really stupid one! Forgive me on this question please but I really don't know the answer to it. My question is What have Youtube used to play videos intheir Android app? I mean is it a WebView or Just a simple VideoView? I used VideoView to play videos from the URL associated with them but it doesn't look as nice as YouTube's VideoView (or whatever it is)
And is there any other option to play videos from a URL other than using the code below? Because it just plays video in the native video player. If the red-marked portion in the image below is a VideoView, how does it look better than the normal VideoView? Or is it a WebView? Which one is a better option (in terms of UI) to play video from a URL? I'm using GingerBread and want to play mp4 or .flv videos in a VideoView or WebView (whichever is the better option, preferably like Android's YouTube app)
Uri data = Uri.parse(movieurl);
intent.setDataAndType(data,"video/3gpp");
startActivity(intent);

Progressive Streaming Videoplayer

I am developing an application in which I have a list of videos to be downloaded from the URLs. Each video is of about 10 min duration. Now, what I want is that the video is downloaded progressively in background and similarly displaying the downloaded video as like in Youtube.
I have tried using VideoView but it cant succeed.
So is it possible to do such with help of android's VideoView?
Thanks in advance.
This http://blog.infidian.com/2008/04/04/tutorial-custom-media-streaming-for-androids-mediaplayer/ shall help you. Would comment, but I can't.

Youtube video in VideoView

I want to play a remote video in a Videoview. Anybody knows a good free server to load my videos in it to later stream in a videoview? Is possible to see in a videoview Youtube videos? I have see another questions but I donĀ“t understand. Anybody can put a example to play a Youtube video or remote video for another server in a videoview?
Thank you
You can check android-youtube-player, a project to make YouTube videos play in a VideoView. The usage instructions and sample Activity code is available.
You can definitely stream video directly into a VideoView without a problem, and you set it up normally as well:
Uri pathtoVideo = Uri.parse(path);
videoView.setVideoURI(pathToVideo);
However, there are a lot of videos on Youtube that aren't mobile-friendly, and will end up throwing a "This Video Cannot Be Played" error.
The MediaPlayer on Android can only play "progressive streamable contents" which basically means: 1. the movie atom has to precede all the media data atoms. 2. The clip has to be reasonably interleaved. If it doesn't, you'll get the error I mentioned above.
Have you considered the YouTube API for android? I recently posted a tutorial on how to use the video and thumbnail views from the API here

How to Embed You Tube Video On Android?

i am new to android.i want to make a video gallery.for that i need to take all videos from you tube,i am able to play video of you tube but it shows me entire web site.But I don't need to show entire site,i just want to show the only the video portion.can any one help me to solve it?is there any script which i can use to solve the problem?
Thanks in Advance
Aamirkhan I.
Have a look at the answer of this question. You can get the video uri from the GData API and then start any media player.

How to play flv video in android?

I want to display my FLV video in emulator. Anybody who have already work on this?
Basically I need to play video from particular URL and assets folder. So just help on this topic.
You can play a FLV video using the flash plugin inside a WebView. See here.
Hope this will help you.
Edit:
These are done using Action Scripts.
Call the Action Script
Play flv using Action Script
flv programming
Also this
There is a workaround which will also allow you to play from a local asset resource, please read my answer to this similar question for a full solution:
Problem to load flv video in webview
I used flv.js in the webpage to make the html support flv video file without flash. Then use XWalkView something like webview in android studio to load the webpage. Use WWalkView..

Categories

Resources