Contents Index Topic Contents | |
Previous Topic: PreviewMode Next Topic: ReadyState |
Rate Property
Sets or retrieves a value specifying the clip's playback rate.
Syntax
MediaPlayer.Rate [ = dblRate ]Possible Values
dblRate Double value specifying the clip's playback rate. This property is read/write with a default value of 1.0.
Remarks
This property acts as a multiplier value that allows you to play the clip at a faster or slower rate. The default value of 1.0 indicates the authored speed. Note that the audio track becomes difficult to understand at rates lower than 0.5 or higher than 1.5. A playback rate of 2 equates to twice the normal playback speed.
Other considerations apply as well, depending on media type:
- Advanced streaming format (ASF) and video on demand (VOD): Optimal values for this property are from 1 to 10 or from 1 to 10. Values with an absolute magnitude greater than 10 are allowed, but not very meaningful. Audio plays only when the value is 1. An ASF or VOD file must be stopped and the AllowScan property must be true before you can set the Rate property. Negative values for this property indicate reversed playback. This property applies only to files that meet the same conditions as stated in the section describing the CanScan property.
- Other Media Types: This property can range from 0 to 9. Negative values are not allowed. Values less than 1 represent slow motion. Values above 9 are allowed, but not very meaningful.
See Also
Top of Page
© 1999 Microsoft and/or its suppliers. All rights reserved. Terms of Use.