Open topic with navigation
<multimedia:av>.setRate
This action sets the playback rate for the multimedia object
<multimedia:av>.setRate( |
|
rate |
) |
|
rate
The new playback rate.
Remarks
The rate is how fast the audio or video file will play. If rate is 2 then the file will play twice as fast. If rate is 0.5 then the file will play half as fast.
Return Value
None
Example
song = viz.addAudio('music.mp3')
song.setRate(2)
song.play() # The song will play twice as fast
See also