在 Python 中播放 MMS 流

发布于 2024-07-25 18:53:39 字数 279 浏览 1 评论 0原文

我正在编写一个 XM 桌面应用程序(如果有人感兴趣,我计划在完成后在 github 上发布源代码)无论如何,我知之甚少的一部分是如何在 Python 中播放媒体(我正在使用 PyQt对于前端)。 基本上,我有一个需要播放的 mms:// 网址。 我想知道是否有一个图书馆可以完成这个或其他事情,实际上我只需要有人为我指明正确的方向。

我知道这是可能的,因为 SMplayer(使用 Qt 的 MPlayer 的 Python 实现)可以与 MMS 配合使用,如果情况变得更糟,我可能必须在它们的源代码中找到一个峰值。

I'm writing a XM desktop application (I plan on releasing the source on github when I'm finished if anyone is interested) Anyway, the one part I know very little about is how to play media within Python (I'm using PyQt for the frontend). Basically, I have a mms:// url that I need to play. I was wondering if there is a library that could accomplish this or something, really I just need someone to point me in the right direction.

I know its possible, because SMplayer (Python implementation of MPlayer that uses Qt) works with MMS, I may have to take a peak at they're source if worse comes to worse.

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

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

发布评论

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

评论(1

毁梦 2024-08-01 18:53:40

你可以看看

  1. PyMedia
  2. PyGame
  3. wxPython

这里是使用 wxPython 执行类似操作的代码片段

所有这些都可以播放媒体文件。

You can have a look at

  1. PyMedia
  2. PyGame
  3. wxPython

Here is a code snippet of doing a similar thing with wxPython.

All of these can play media files.

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