how do i get the flv file path from a youtube URL

Mariam picture Mariam · Jan 14, 2011 · Viewed 23.5k times · Source

i have an swf media player which play flv videos but i want it to play youtube videos so i must pass to the player flv file path

the senario is a website which i can upload videos or put a url and i can put a youtube video URL

i am using asp.net and i need a solution whenever i detect a user is entering youtube video i must convert it to flv file path to be played in the player

Answer

Cruel picture Cruel · Mar 1, 2011

This post explains how to retrieve links of different qualities (FLV and more): youtube get_video not working

However, if you're just going to play the videos, it would be easiest to use Youtube's chromeless player API: http://code.google.com/apis/youtube/flash_api_reference.html