RateControl controls the playback rate of a
Player .
The rate defines the relationship between the
Player's media time and its
TimeBase . Rates are specified in "milli-
percentage".
For example, a rate of 200'000 indicates that media
time will pass twice as fast as the
TimeBase time once the Player
starts. Similarly, a negative rate indicates that the
Player runs in the opposite direction of its
TimeBase , i.e. playing in reverse.
All Player must support the default rate
100'000. Player s that support only the default
rate must not implement this interface.
Player s that support other rates besides
100'000, should implement this interface and specify the
appropriate minimum and maximum playback rates.
For audio, specific implementations may change the playback
pitch when changing the playback rate. This may be viewed as an
undesirable side-effect. See PitchControl for
changing pitch without changing playback rate. |