Hi all,
I was just wondering what method you would recommend to play motion
jpeg video from the web? Currently I use twisted to request a
connection and then constantly updating the bitmaps. However, this
proves to be very choppy. I tried to use MediaCtrl but I could only
get it to work with existing files and not via streaming. Basically,
I tried:
try:
self.videopanel = wx.media.MediaCtrl(self, size=(480,480),
style=wx.SIMPLE_BORDER,
szBackend=wx.media.MEDIABACKEND_GSTREAMER)
except NotImplementedError:
self.Destroy()
raise
self.videopanel.LoadURI('http://xxx.xxx.xxx.xx/mjpg/
video.mjpg')
self.videopanel.SetInitialSize()
self.videopanel.Play()
self.videopanel.SetInitialSize()
The code above would not work (i.e. the video won't play). If I load
a file, that works just fine. I'm using Python2.6 on Ubuntu 9.04.
Anybody have any idea?
I saw some people try to use mplayer to embed in their application and
that works for them. Googling about it doesn't show enough result.
I'm a newbie so I don't really know how I would go about embedding
mplayer. Anyone have some sample codes I could look at?
Thanks,