开发者

How to play video from YouTube URL like VLC?

I'm using Qt with Phonon, I'd like the program I'm writing to be able to play a YouTube video from a URL, I've tried 开发者_如何学JAVAgoogling it but none of the methods I found work. If you put a YouTube URL on VLC, it will play it. Can anyone please tell me how they do this?

Thanks in advance.


download the video (qnetworkacess) and then play it.


You shouldn't do this. It's because YouTube owns that stream and by passing it into VLC, you're essentially stealing it. I know it's a lame answer, but if you want to play it on VLC, why not just play it using the YouTube player?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜