# Windows Media Player - Controlling Playback Speed

**URL:** <https://www.ruby-forum.com/t/windows-media-player-controlling-playback-speed/163060>\
**Category:** Ruby\
**Created:** [March 17, 2009, 1:31am UTC](https://www.ruby-forum.com/t/windows-media-player-controlling-playback-speed/163060 "2009-03-17T01:31:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@alexd](https://www.ruby-forum.com/u/alexd)\
**Post date:** [March 17, 2009, 1:31am UTC](https://www.ruby-forum.com/t/windows-media-player-controlling-playback-speed/163060/1 "2009-03-17T01:31:56Z")

</div>

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
