Get specific Content from Web page to Android - android

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.

Related

Caching and Playing video

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.

Display recently playing videos from a website to my Android app

I want to display the recently playing videos from a video streaming websites in a LinearLayout in my Android app. I know how to make an activity have a linear layout to put the videos to but I don't know how to get those videos from that website. Would I need JSON parsing to do it? Does anyone have any information about how to display recently playing videos on a video streaming website to an Android app (any links to useful stuff like API's etc) ? I tried Google but didn't get something useful.
If the website doesn't have a JSON interface (or any other). Then you should do scraping.
This involves downloading the HTML (via e.g. HttpClient), parsing the HTML and search for the video URLs.

.mov file will play in browser, but not in native MediaPlayer app

I am launching the MediaPlayer to play a .mov file that is being passed into the MediaPlayer as a Uri (which is standard). However, it is telling me that it cannot play the file. However, if I put this same link on the web, and the click the link to launch the movie (while in my Android browser) the video plays no problem. However, I can't get the WebView to play it with the Video tag despite all my efforts.
So here is my question, what magic is taking place that allows an android browser app to take a .html url which contains a link to play a video and play it? If I load the same url in a WebView, or try to pass the video url into the mediaplayer, it is a no go. The format of the video is .mov.
Thanks in advance to everyone.
The Android browser and WebView are very different, WebView is very barebones as it was designed expecting people to use it for very basic showing html webpages. WebView by default has no plugins enabled, no javascript enabled and so on and so on. Never expect that because something works in the browser that it will work in a WebView.
Now in regards to how the media is handled. The Browser has extra features set up to strip the video source from the page and launch it in the native player most of the time. This functionality is not built into WebView. And the native player is very picky about what needs to passed into it as a URI to be able to play it.
Hope that helps,
Stevy888

Android: Make the native media player load the video from URL

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

How can I change the way the google docs website displays a PDF in Android?

I am using the following link inside a WebView to show a pdf file in my android application:
http://docs.google.com/gview?embedded=true&url=http://174.136.1.35/dev/android/1_android-Survey-Report-for-pdf-1200-x-768.pdf
This works, and displays the PDF, as you can see in the attached images. The problem I have is that
I want to disable the zoom controls, and the desktop and download
links.
Is this possible, and if so, how?
You are basically opening a web view and loading it with a webpage from the internet, specifically Google Docs. Without some special functionality built into the website, there isn't going to be way to get rid of the extra buttons, links, and labels you're seeing. Instead of this, you could download the PDF that your link is pointing to as a PDF and try to display that directly. There is a stack overflow question on this topic

Categories

Resources