Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

AVPlayer.SetRate

Sets the playback rate.

Component: AVPlayer
Version: 7.1
Mac OS X: Yes
Windows: No
Server: No
FileMaker Cloud: No

MBS( "AVPlayer.SetRate"; AVPlayer; Rate )

Parameters

Parameter Description Example value
AVPlayer The reference number of the player. $Player
Rate The new rate. 1.0

Result

Returns OK or error.

Description

Sets the playback rate.
Default is 1.0.
You can for example set to 0.5 for half speed or 2.0 for double speed.

Examples

Sets rate:

Set Variable [$r; Value:MBS("AVPlayer.SetRate"; $$Player; AVPlayer::Rate)]
Set Field [AVPlayer::Rate; MBS("AVPlayer.GetRate"; $$Player)]

See also


AVPlayer.SetMuted   -   AVPlayer.SetTime

Feedback: Report problem or ask question.




Links
MBS Realbasic tutorial videos - Pfarrgemeinde St. Arnulf Nickenich