Direct link of Youtube video - android

I would like to get from the link http://www.youtube.com/watch?v=GzmpH7eaA4k the direct link of the video, something like: http://www.youtube.com/(...).mp4
Is it possible? I have seen a lot of threads that use "www.youtube.com/get_video_info" and other ways but I think that all of them are obsolete right now.
How can I get the URL that I need?

There is a easy way to find youtube direct video link using VLC Media Player.
Open VLC -> Media -> Open Network Stream -> Network -> Enter the youtube link (e.g. http://www.youtube.com/watch?v=7FKEy_RWwQk).
Now open the playlist-> Right click on Video-> Information -> You will find the below part of the screen in location textbox.This is the direct link of the video.You can open it in browser or save it to your local system.

If you want the direct Link to download a Video you have to use the "stram_map" attribute with the specific itag(quality). A great example how you can get the download link is shown here: Get the download URL for YouTube video (Android/Java) you can directly play the video in your own player or you could use it to download the video to your device.

Well I would go nab the link myself for you but you have the video not available in my country, USA, just simply click the share tab under your video and use that link.

I believe that get_video_info is deprecated. Try in stead:
http://gdata.youtube.com/feeds/api/videos/GzmpH7eaA4k
Keep up to date with the youtube api here: https://developers.google.com/youtube/

Related

In-App Media playback and Link Preview

When a link is shared in a Chat, we need to display the link preview after sharing it. If the link contains a media from youtube/vimeo/soundcloud, we need the ability to playback the link from the app itself.
Something like this..
https://telegram.org/blog/search-and-media
https://telegram.org/blog/link-preview
Is it possible to get information from link?

How to stream video to VLC from direct video link (for Android or iPhone)

Hi I'm finding a way to create a website link to stream my direct video link from my web server to my android phone
for example I have a video direct link like :
http://1.1.1.1/video.mkv
I would like to create a web page to have like a button when press and it's automatically call VLC and stream the link above.
What I've try is just use a normal hyperlink like
<a href='http://1.1.1.1/video.mkv'>Play video</a>
when I press it's just downloading the video instead of playing it
But When I try it on mp4 video
<a href='http://1.1.1.1/video.mp4'>Play video</a>
It can call my VLC and stream it
So then I try to insert the direct link of the MKV video file
direct to vlc by open VLC app and open network stream
then MKV can stream just fine
So how can I make a hyperlink to automatically call VCL to stream my MKV file without having to copy the link then open VLC and input directly to app itself everytime?
Someone Please Help
Thank You
*edit, see here:
How can I make URLs to music files play in VLC on iOS?
Here is another type of example which opens an app or links to appstore if the app is not installed.
http://support.mobileapptracking.com/entries/25539969-How-to-Deeplink-to-Your-Mobile-App-from-Your-Website

Unable to stream YouTube Url in VLC android

I have already integrated VLC player in my android app in Linux environment.But now the issue is when i try to play the YouTube link .It Unable to stream the YouTube URL and the concerned g-data ".3gp" URL.The error is mentioned below.
"http://www.youtube.com/watch?v=oq1gNicFkeM can not be played." in Toast.
Does anyone have any idea on the same?
I have found a temporary solution.I'm not an expert, but this did the trick for me:
Find a website which can download youtube video's (I suggest keepvid.com)
Paste the url of your youtube video into the designated bar and, although we are not downloading anything, hit the Download button.
Now the website gives you a list with different formats for you to choose from. RIGHT-click the one on top (mp4?) and copy the link's adress.
This link can be played in VLC Android and includes your youtube video.
VLC for Android does not support the lua plugins needed to parse the YT URL.
You need to parse the HTML layout yourself (and feed the resulting URL to VLC) or add support for lua plugins to VLC for Android to solve this issue.

How to get direct link to video?

I have a problem with playing video in my app. Basically what I want to do is getting direct link to video like: www.embed.videotube.com/player/?id=431436[...].mp4 from: http://embed.videotube.com/player/?id=431436. I've seen some websites like www.videotools.12pings.net which will get proper link.
Is there any option how to cope in situation where there is no proper API ? (example: api for youtube)
After clicking on video thumb:
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("www.embed.videotube.com/player/?id=431436[...].mp4"));
myContext.startActivity(intent);
That seems to be a direct link. You could verify it by running fiddler or any HTTP traffic monitoring tool, while playing the video, the video link will be displayed in the inspector window.

Get specific Content from Web page to 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.

Categories

Resources