Forum: wxRuby MediaCtrl audio not playing

Posted by Chase Wilson (remosewa)
on 2010-08-07 00:32
Ok, so I have this weird problem, where I load an audio file into a
mediacontrol with an unspecified backend.(i call it like this:
@mediacontrol = Wx::MediaControl.new(self)) I wanted the audio to play
after the audio is loaded. I.e user pressed load, and after it loads, it
plays. However, it loads, but doesn't play.

Sometimes when you push the play button it will work, but some audio
files (which open fine in Windows media player) wont open.

The really weird thing is this code makes it play:

if not @mediacontrol.play
   text = Wx::TextEntryDialog.new(self,  "input string","Please enter
text")
   text.show_modal
   @mediacontrol.load(text.get_value)
end

Can anyone help me understand why this is? I don't want to have to open
up a dialog every time I play an audio file.
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.