You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fiddling around with an MP3 player. The following code the link and the image 'button' works where as the -actual- button does not. Also the value for a video object's length does not appear to be calculated until the video is being played. (Or at least that's the case when playing .ogg files).
Removing the animate block entirely, the button actually works
require'green_shoes'Shoes.app(:width=>320,:height=>240,:title=>"Ogg Player Demo")dospace=" " * 3@song=video"c:/Repos/Ruby/mp3Player/song2.ogg"@link_Play=paraspace,link("Play"){@song.play},space,link("Pause"){@song.pause},space,link("Stop"){@song.stop@song=video''}@lbl_songLength=para('')@btn_Play=button"Play"@btn_Play.click{@song.play@songLength=@song.length.to_i/1000}@img_Play=image"c:/Repos/Ruby/mp3Player/play_18x24.png"@img_Play.click{@song.play}animatedo@songLength=@song.length.to_i/1000if@songLength != 0@lbl_songLength.replace("#{@songLength}")else@lbl_songLength.replace('')endendend
The text was updated successfully, but these errors were encountered:
@nanenj Thanks for the post. Yes, this is a problem. But sorry, I have no solution for now. A workaround is to slow the rate of animate, e.g. animate(1). Not a good workaround though... xx-P
Fiddling around with an MP3 player. The following code the link and the image 'button' works where as the -actual- button does not. Also the value for a video object's length does not appear to be calculated until the video is being played. (Or at least that's the case when playing .ogg files).
Removing the animate block entirely, the button actually works
The text was updated successfully, but these errors were encountered: