How can I get the flv file path from youtube url

I have a swf media player that plays videos in FLV format but I want it to play videos on YouTube so I have to go to the player’s flv file path

senario is a website where I can upload a video or post a url and I can put a youtube video url

I use asp.net and I need a solution when I find that the user is entering a video from YouTube I have to convert it to the path to the flv file that will be played in the player

+4
source share
2 answers

This post explains how to extract links of different qualities (FLV or more): youtube get_video does not work

However, if you are just going to play the video, it would be easier to use the faceless Youtube player API: http://code.google.com/apis/youtube/flash_api_reference.html

+2
source

You can use the current web service that is already implemented for your project.

Use www.keepvid.com to decode the URL from YouTube. First go to YouTube and upload the video, then copy the URL in the address bar and it should show something like this:

http://chi-v48.chi.youtube.com/get_video?video_id=TvedUxLtZKQ

All that remains is to add .flv to the end of the URL so that it ends as follows:

http://chi-v48.chi.youtube.com/get_video?video_id=TvedUxLtZKQ.flv

-1
source

Source: https://habr.com/ru/post/1335543/


All Articles