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.
Related
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)
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
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.
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..
I am trying to Download a Video as explained in:
Can’t download youtube video
and
How does a YouTube movie downloader work? - YouTube
but it seems this method does not work anymore.
How can I download the .flv from Youtube today? Is there a method to save the movie after I watched it, without downloading again?
Does anybody have a working exmaple? (Is the best way to learn)
Thanks in advance,
Adrian.
Userscripts.org has some scripts that enable downloading and viewing without flash. I haven't tried it, but OilCan is supposed to run Greasemonkey scripts on Android.