Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将 Qt 与 Phonon 一起使用,我希望我正在编写的程序能够从 URL 播放 YouTube 视频,我尝试过谷歌搜索,但我发现没有一种方法有效。如果您将 YouTube URL 放在 VLC 上,它将播放它。谁能告诉我他们是怎么做到的?
提前致谢。
下载视频(qnetworkaccess)然后播放。
你不应该这样做。这是因为 YouTube 拥有该流,并且通过将其传递给 VLC,您实际上是在窃取它。我知道这是一个蹩脚的答案,但如果你想在 VLC 上播放它,为什么不直接使用 YouTube 播放器播放呢?