我如何从 youtube URL 获取 flv 文件路径 [英] how do i get the flv file path from a youtube URL
问题描述
我有一个 swf 媒体播放器播放 flv 视频但我想让它播放 YouTube 视频所以我必须传递给播放器的 flv 文件路径
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
senario 是一个我可以上传视频或放置网址的网站我可以放一个 youtube 视频网址
the senario is a website which i can upload videos or put a url and i can put a youtube video URL
我正在使用 asp.net我需要一个解决方案每当我检测到用户正在输入 YouTube 视频时我必须将其转换为要在播放器中播放的 flv 文件路径
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
推荐答案
这篇文章解释了如何检索不同质量的链接(FLV 等):youtube get_video 不工作
This post explains how to retrieve links of different qualities (FLV and more): youtube get_video not working
但是,如果您只是想播放视频,使用 Youtube 的 chromeless 播放器 API 会最简单:http://code.google.com/apis/youtube/flash_api_reference.html
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
这篇关于我如何从 youtube URL 获取 flv 文件路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!