From: Jacob on
Have you tried upgrading your version of Python to 2.6? Perhaps there is an
issue with the way python is handling something on the OS. It works on Linux
like it should you say.


Jacob


On Fri, May 29, 2009 at 5:57 PM, nextime <nextime(a)nexlab.it> wrote:

> Hello all.
>
> I'm fighting with a strange issue that smell like a bug.
>
> Short version:
> --------------
>
> I'm trying to open an ogg audio stream from an icecast server. No video,
> just audio. I need to do this in a cross-platform client (osx, win,
> linux).
>
> - On Linux, with gstreamer, it work great.
> - On windows, i have some issues in vista cause of the codec, and some
> strange things happens, but more or less it work.
> - On OSX, it work "ramdomly"
>
>
> Long version:
> -------------
>
> wx version: 2.8.10.1
> python version: 2.5.2
>
> I do basically the same thing on all the three OS:
>
> self.mc = wx.media.MediaCtrl(mypanel)
> self.Bind(...)
> self.mc.LoadFromURI(myurl)
>
> and when the loaded event is fired:
>
> self.mc.Play()
>
> This on linux is working perfectly, i can hear my stream, it is rapid in
> loading it, it sounds good.
>
> On Windows, it work ( except from some codec questions, but this is
> another story ), it is a little "slow" in loading the remote stream,
> about 15 seconds before i get the loaded event fired, and also i need to
> call self.mc.LoadFromURI() 2 times or the loaded event will be not fired
> at all.
>
> On OSX, i also need to call 2 times self.mc.LoadFromURI(), it is also
> slow, but the loaded event get fired 1 time every 4/5 try, apparently in
> a random manner.
>
> My code is here:
> http://www.astronomix.org/trac/browser/trunk/skylive-ng/src/gui/stream.py
>
> Anyone have any suggestion or idea on how to solve my issue?
>
>
> --
>
> Franco (nextime) Lanza
> Busto Arsizio - Italy
> SIP://casa(a)casa.nexlab.it
>
> NO TCPA: http://www.no1984.org
> you can download my public key at:
> http://danex.nexlab.it/nextime.asc || Key Servers
> Key ID = D6132D50
> Key fingerprint = 66ED 5211 9D59 DA53 1DF7 4189 DFED F580 D613 2D50
> -----------------------------------
> echo
> 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D212153574F444E49572045535520454D20454B414D204F54204847554F4E452059415020544F4E4E4143205345544147204C4C4942snlbxq
> | dc
> -----------------------------------
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkoghH0ACgkQ3+31gNYTLVA1ggCgmeKLAO+WLQgIyDDhOExOSuI5
> VgsAoKqg8sN1turduVdwkPO/saGHYs6i
> =y8tc
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> wx-users mailing list
> wx-users(a)lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wx-users
>
>