在应用程序中播放 YouTube 音乐

发布于 2024-09-28 14:54:14 字数 132 浏览 1 评论 0原文

有谁知道如何在我的 c# .net 4.0 应用程序中播放来自 youtube 的音乐?我已经安装了来自 google 的所有 api 和 sdks,但我似乎找不到可以让我在桌面应用程序中播放音乐的教程。

问候, 亚历山德鲁·巴德斯库

Does anyone know how to play music from youtube in my c# .net 4.0 app ? I've installed all the apis and sdks from google but i can't seem to find a tutorial that lets me play music in my desktop app .

regards,
Alexandru Badescu

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

绝不服输 2024-10-05 14:54:14

如果它是一个 ASP.NET 应用程序,您只需在标记中嵌入一个对象标记即可。查看“”按钮以获取单个视频的标签信息。

如果它是 Windows 窗体或 WPF 桌面应用程序,为什么不直接嵌入具有相同标记的浏览器控件呢?

无论哪种方式,您应该能够使 object 标签不可见,并且仍然能够听到音乐。

If it's an asp.net application, you can just embed an object tag in your markup. Check out the "<embed>" button to get the tag info for an individual video.

If it's a Windows Forms or WPF desktop application, why not just embed a browser control with the same tag?

Either way, you should be able to just make the object tag invisible and still be able to hear the music.

云淡月浅 2024-10-05 14:54:14

这是有关如何将 YouTube 视频放入 MVC 应用程序的教程,它应该会有所帮助。

http://webpangea.blogspot.com/2009/12 /youtube-ms-mvc-and-jquery.html

Here's a tutorial on how to put youtube videos into an MVC app it should help.

http://webpangea.blogspot.com/2009/12/youtube-ms-mvc-and-jquery.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文