Dear experts I face a problem loading Video file from the URL in my Android app.
In my app when I click the button a web page is opening. In the bottom of the page I have buttons. One of them should have such functionality. If you click on it, a view appears automatically which contains a media payer icon.(This is have done).The icon contains link to video file. By clicking on that icon the video specified in Url should play. This is the whole scene. Now I can't really implement the part where I give the button its functionality that is make the video to play.
Thanks a lot beforehand
Related
Does someone know of a library or methodology I can adopt to have a recycler view that shows videos and images like Facebook and Instagram?
I want the videos to play as it comes into focus and stops playing when not in viewer focus. Not pressing play for playing videos or pressing stop for stopping videos. It should happen automatically.
Any help will be greatly appreciated!
Please refer to this blog below for playing videos in recyclerview. And as for showing images you can add that check easily by checking the file type.
play videos in recyclerview
I am Beginner in android and I'm developing an app in which I want to store some youtube videos in arraylist. I want these YouTube videos to be shown in my app as listview of videos which contains thumbnail and title of videos.Whenever the user click on any video from that ListView the video will be played in YouTube app (full screen).
I need both xml and java code for this.
Every kind of help is appreciated!
I have a webview which displays some HTML, and includes embedded YouTube videos. The videos are wrapped in an iframe tag and I have setJavascriptEnabled(true) in my Java file, so the video can play in the WebView. However, I would like to be able to launch Youtube when the user clicks the video.
Other posts on SO suggested that I parse out the video ID's and start an intent. However, this seems pretty tedious considering there can be multiple videos. In addition, I'm not sure how to set the iframe to clickable to listen for a click event.
Any suggestions?
The requirement is to list a Videos thumbnails and on clicking it should play related video into Application. i am able to play url where video is located using Video View. But now i want to implement this thing in a better ways like Watsapp and instagram. If anybody have a good experience in this reference please share with me. I want to play around caching video and playing videos from cache without buffering (Video view is showing buffering bar and very slow in performance user have to wait a lot for starting a Video). Any kind of help will be appreciated. thanks.
I did it own my own. It's very simple to implement What i do is to download the video with async task along with a progressing seek bar. Once it's downloaded i'll save it in a Folder in my sdcard. We should create a Folder named as Application name so easy to identify and also always available videos with out opening application as well and next time however when i want to watch video again in my application it just check weather it is available in sdcard if yes then play immediately if not then download it. I am happy.
I have a web site and there are some videos on it.
I want to make Android app which doesn't load the whole web page, just the Video part. Is it possible? like loading youtube in WebView, but showing only video , not comments etc.
Thanks
create a video player in your app and based on the selected video load its URL to the video player and enable remote streaming to run the videos on the app. that should work.
It is a best way to make one web service in your website that can give you whatever you need from your website (This will also can be use to make change on your web service and get more or less content from your own website)
To use this things you need to parse your page with xml parser.
I have done my project this way which display my website's videos in my android
My website link
http://www.mycricketclips.com/.
I uses my android app to get all the displayed category and its video list in my android app.
and when I click on perticular video list, it will display that video on "webview" in android app.
Hope this might helpful for you.