开发者

How does one stream and play Youtube/FLV videos in a C++ application?

开发者 https://www.devze.com 2022-12-20 05:14 出处:网络
开发者_StackOverflowI would like to stream and play Youtube videos, or FLV files in general, in a C++ application.How can it be done? (I\'m using QT as a GUI)You have two problems to tackle.
开发者_StackOverflow

I would like to stream and play Youtube videos, or FLV files in general, in a C++ application. How can it be done? (I'm using QT as a GUI)


You have two problems to tackle.

First one you need the player technology. For that you can use ffmpeg but bear in mind that it is licensed under GPL (older version in LGPL).

The second thing is that you need access to the FLV video urls. For this you either scrape the website or used the YouTube GData APIs. If you decide to go for the latter you need to know that you'll need a special deal with YouTube/Google to be granted access to the high quality streams. Usually you don't get access to the FLV ones.


How about Qt with Phonon plus a backend that can decode flv streams?

0

精彩评论

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