Forum: wxRuby evt_media_loaded not working on vista/windows 7

Posted by Chase Wilson (remosewa)
on 2010-10-12 02:06
For some reason the evt_media_loaded is not being triggered on windows 7
and windows vista. However, the same code on windows xp works just fine.
Anybody have any ideas?
Posted by Chase Wilson (remosewa)
on 2010-10-12 02:39
For some reason the evt_media_loaded is not being triggered on windows 7
and windows vista. However, the same code on windows xp works just fine.
Anybody have any ideas?
Posted by Chase Wilson (remosewa)
on 2010-10-12 02:41
For some reason the evt_media_loaded is not being triggered on windows 7
and windows vista. However, the same code on windows xp works just fine.
Anybody have any ideas? What I'm trying to do is auto play audio once it 
has loaded. My solution right now has been to just user a static timer 
and hope that the audio loads within that time. Once the timer counts 
down it will try to play the audio. However, if the audio is not done 
loading it will not work correctly
Posted by Alex Fenton (Guest)
on 2010-10-12 11:11
(Received via mailing list)
HI Chase

On 12/10/2010 01:41, Chase Wilson wrote:
> For some reason the evt_media_loaded is not being triggered on windows 7
> and windows vista. However, the same code on windows xp works just fine.
> Anybody have any ideas?

It appears to be a bug in wxWidgets:
http://trac.wxwidgets.org/ticket/10958

We will have to wait for a fix in the underlying library - I don't have
Windows 7 so unfortunately I can't look into it myself.

> What I'm trying to do is auto play audio once it
> has loaded. My solution right now has been to just user a static timer
> and hope that the audio loads within that time. Once the timer counts
> down it will try to play the audio. However, if the audio is not done
> loading it will not work correctly

There is some discussion on this page - but it sounds like the final
workaround is similar, ie call sleep(1) after load.

http://forums.wxwidgets.org/viewtopic.php?t=18761

alex
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.