How to create android app which revtrieve video from website - android

I have a website which contains some videos (all videos are uploaded on youtube). Now i want to make an android app for retrieving/watching videos from this site (like youtube). So, which kind of layout I should use for video objects? Can these videos be displayed same like on youtube?
Please give me some suggestions.
Thank you!

yes you can, you have to work with youtube api for android so you can play the videos via youtube player here youtube and you can download all of your videos using a web service so you can access to your videos, you can you list view to show your videos, and you also can use custom list layout to make it more interested

Related

Search and play YouTube videos on Android app

I am planning on developing an app similar to Snaptube, where a user can search and stream videos on the app just like YouTube. The question is, does YouTube allow for such applications, and how would I go about it in terms of the searching functionality since most tutorials show how just to play videos embedded to the app through a link in methods such as recycler view or web view? Hope I am clear as can be, thanks.
Youtube as an API that is specifically designed to search Videos on their plattform. You can retrieve the found videos and embedd them in your app, so the user can watch the content. YouTube allows such applications.
See https://developers.google.com/youtube/v3/docs/search/list for an API (JAVA) Example of how to search Videos on Youtube. There are Android Libraries that help you with that. They can be found here https://developers.google.com/youtube/android/player/downloads/ and here https://developers.google.com/youtube/v3/quickstart/android.

Dailymotion Video in listview Android

How do I show the list of "DAILYMOTION" videos in android?
Also how do I play them?
I am able to play single video, but I now want to show more than 25 videos in a list.
How can I do this?
This is more works than supposed to be on a simple stackoverflow question!
You can:
list videos using Dailymotion API (documentation here https://developer.dailymotion.com/api)
and then play them using the Dailymotion video player. Here you'll find the documentation about the Android Player SDK: https://developer.dailymotion.com/tools/sdks#sdk-android that is a thin wrapper around a WebView that allows to easily embed Dailymotion videos into your Android application. You can check the source code, documentation and sample app on the GitHub repo: https://github.com/dailymotion/dailymotion-sdk-android/tree/master.
There even is a sample app that may help you get started! https://github.com/dailymotion/dailymotion-sdk-android/tree/master/SampleApp

Search and Play Youtube videos in android

I'm building an application in which i want to search for videos related to a keyword like "World Cup 2014". and then a GridView showing the videos appears (Like in Search Result Screen) and when user clicks on any video(gridview item), particular video plays in next screen(Video Playing Screen).
Please suggest can I search using Youtube Android Player API? Or I will have to use Youtube Data API before playing the video using Youtube Android Player API?
Thanks in advance.
You may check this open source code, maybe it will help you understand how to search/play video. It's using JSON.
https://github.com/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/Search.java

Loading contents from webpage in Android

Can any one suggest a solution for the following problems:
Is it possible to load contents into my android UI from a web page
And secondly i want to play videos in that webpage through the
android application
Thanks to all in advance
Yes you can do these things by using web services. Using ASP.Net or PHP you can write web services and call them from your android application. You can use Json /Soap for this.
Here are some links. Go through this..
http://www.codeproject.com/Articles/304302/Calling-Asp-Net-Webservice-ASMX-From-an-Android-Ap
http://androidexample.com/Restful_Webservice_Call_And_Get_And_Parse_JSON_Data-_Android_Example/index.php?view=article_discription&aid=101&aaid=123
You can use WebView to display web page contents, but not all kinds of video can be played. You can not play video from the pages with Flash Player, but the video will be played if the player is HTML5.

PLaying Youtube Live Videos with in the application

I am trying to play Youtube video's directly with in my applications in Android. If we give the direct links of the youtube like https://www.youtube.com/watch?v=HnbMYzdjuBs then the device displaying different applications that can open that link after clciking the video icon. If i use https://gdata.youtube.com/feeds/api/videos?q=flowers to fetch the links from Youtube XML services, the RTSP links are working perfectly with in the application but the quality is too bad.
How to fix this issue?
One more question is, i want to play a live video from Youtube. We have a youtube webservice to fetch the links(1,5,6 video types) of a specific vedio ID. We can use the below link to fetch the RTSP link for normal videos http://gdata.youtube.com/feeds/mobile/videos/ll4SoSJgLfI. Which is not working for Live Videos in Youtube. i am not getting the tag media-content. How to show the live streaming video from youtube on android devices ?

Categories

Resources