# Evt\_media\_loaded not working on vista/windows 7

**URL:** <https://www.ruby-forum.com/t/evt-media-loaded-not-working-on-vista-windows-7/195430>\
**Category:** wxRuby\
**Created:** [September 23, 2010, 6:11am UTC](https://www.ruby-forum.com/t/evt-media-loaded-not-working-on-vista-windows-7/195430 "2010-09-23T06:11:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![remosewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@remosewa](https://www.ruby-forum.com/u/remosewa)\
**Post date:** [September 23, 2010, 6:11am UTC](https://www.ruby-forum.com/t/evt-media-loaded-not-working-on-vista-windows-7/195430/1 "2010-09-23T06:11:50Z")

</div>

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.
