开发者

YouTube API Question

What is the best way given the YouTube url to send the audio to a list view like (http://opentape.fm/mixtape/). I would h开发者_如何学编程ave to it streaming from the YouTube player, rather than downloading and uploading the actual file to the server. Any help would be awesome, thanks!


The big problem you have here is that YouTube does not take mp3 files directly, a video must be created from the mp3 file.

Dynamically creating a video within the browser without any server-side assistance would be near impossible, it is hard enough to get data access to the mp3s (or any image source for the video stream) and writing a codec in JavaScript is not going to be fun.

You could probably do it server-side in a streaming fashion if you can find/write software that can chunk the mp3 audio appropriately and just shove a flat image in to a simple video stream on each key frame, multiplexing as you go.

Should you be able to do all that, the API details for uploading detail the process. You can do this without any metadata at all, simplifying the process somewhat for streaming.

But generally, the answer is no - not easy to do this client-side. You could make an AJAX service out of the server-side idea that takes a URL as a parameter, but that's about the limit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜