For some reason the evt_media_loaded is not being triggered on my windows vista and windows 7 machines. I use this so that I can auto play audio, and as soon as it''s loaded I can play. I also have a windows XP machine where it works just fine using the exact same code. Is there anything I can do to fix this, or is there any way around this? Right now I have it wait .5 seconds before trying to play the audio file. But it may take longer to load different files based on size, and also sometimes users play remote files on servers, so there may be a slow connection. -- Posted via http://www.ruby-forum.com/.
Chase Wilson
2010-Oct-12 00:06 UTC
[wxruby-users] evt_media_loaded not working on vista/windows 7
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 via http://www.ruby-forum.com/.
Chase Wilson
2010-Oct-12 00:39 UTC
[wxruby-users] evt_media_loaded not working on vista/windows 7
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 via http://www.ruby-forum.com/.
Chase Wilson
2010-Oct-12 00:41 UTC
[wxruby-users] evt_media_loaded not working on vista/windows 7
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 via http://www.ruby-forum.com/.
Alex Fenton
2010-Oct-12 08:56 UTC
[wxruby-users] evt_media_loaded not working on vista/windows 7
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 correctlyThere 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