playRate

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the playRate of <player> to <rate>
Associationsplayer
Summary

Specifies how fast a player plays a movie.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Example
set the playRate of player 17 to 0.5 -- half-speed
Values
NameTypeDescription
Value

The playRate of a player is a real number. By default, the playRate property of a newly created player is set to 1.

RelatedKeyword: player
Property: callbacks, looping, startTime
Command: play
Glossary: property, real number
Description

Use the playRate property to speed up or slow down playback of a movie or sound.

The playRate is the ratio between the desired playback rate and the natural rate of the movie or sound. A playRate of 1 plays the movie or sound at normal speed; a playRate greater than one speeds up the playback; a playRate less than one slows down the playback.

A negative playRate plays the movie or sound backward.

If the playRate is zero, the movie or sound is paused.

Tagsmultimedia