Playing MMS streams within Python

此生再无相见时 提交于 2019-12-23 02:52:49

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/1072652/playing-mms-streams-within-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!