在Python中播放MMS流 [英] Playing MMS streams within Python

查看:163
本文介绍了在Python中播放MMS流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写XM桌面应用程序(如果有人感兴趣,我计划在完成后在github上发布源代码)无论如何,我所知不多的部分是如何在Python中播放媒体(我m使用PyQt作为前端).基本上,我需要播放一个mms://网址.我想知道是否有一个图书馆可以完成这项工作或某些事情,真的,我只需要有人指出正确的方向即可.

我知道这是可能的,因为SMplayer(使用Qt的MPlayer的Python实现)可与MMS配合使用,如果情况变得更糟,我可能不得不在它们的来源上达到顶峰.

解决方案

您可以查看

  1. PyMedia
  2. PyGame
  3. wxPython

这是一个使用wxPython进行类似操作的代码段./p>

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

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.

解决方案

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.

这篇关于在Python中播放MMS流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆