开发者

Best way to stream a youtube video on a desktop app

I want to make a desktop application which can play a youtube video, streaming it of cou开发者_JAVA技巧rse, which would be the easiest way to do it? Any language / library, I'm guessing maybe Adobe Air is the easiest way? I'm not very experienced with that but it should not be hard... Although I'd like to avoid it if possible.


Java's JTextPane can display HTML. See here

I'd imagine you could adapt the code above easily enough so that it displays just the video frame.


If this desktop application is not intended to be portable, and you just need a fast hack, you can embed an ActiveX Internet Explorer component in a C++ winapi or C# .NET program, and then point the 'embedded' browser to the YouTube page you're looking for, or just an ad-hoc HTML page that just shows the video (using the embed video link from YouTube). This is fast (1-2 hours of work) and works, not very neat, though. It relies on the fact that the target machine is running Windows and has got the Flash plugin on Internet Explorer.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜