Forum: Ruby Windows Media Player - Controlling Playback Speed

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
56c8db2891b2d2714ff22be005859285?d=identicon&s=25 Alex DeCaria (deke)
on 2009-03-17 01:31
I'm using WIN32OLE to control Windows Media Player.  I want to be able
to change the playback rate.  My code is:

require 'win32ole'
song = "some_song.wma"
player = WIN32OLE.new('WMPlayer.OCX')
player.OpenPlayer(song)
player.settings.Rate = 0.5

The "Player.settings.Rate = 0.5" seems to have no effect on the playback
speed.

If I do

print player.settings.isAvailable('Rate'), "\n"

it returns "true", so this method should be available.

Can anyone help?

-- Alex
This topic is locked and can not be replied to.