QMedia Movie prefs commands |

### QM_GetPreferredRate

QM_GetPreferredRate(movieRef; prefRate):error
| movieRef | Longint | Movie reference
| prefRate | Real | Preferred playback rate
| error | Longint | Error result

Returns the preferred playback rate of a movie.

Parameter movieRef is the reference to the movie instance. The movie reference must have been previously obtained with a call to QM_NewMovieFromFile or QM_NewMovieFromURL.

Parameter prefRate receives the movie's preferred playback rate. It is a real number in the -5.0 ... +5.0 range. Positive rates mean forward playback and negative rates mean reverse playback.

The default preferred playback rate of a movie is set to 1.0 when the movie is created.

Example

``Get the preferred playback rate movie $movieRef` `` `C_REAL($prefRate)` `` `$error:=QM_GetPreferredRate ($movieRef;$prefRate)` ``

Related commands

QM_SetPreferredRate | Sets the movie's preferred playback rate.

QMedia © Escape OE
Generated by QDoc 2.8 on Thu, Nov 24, 2011 18:40:38