Navigation
API > API/Runtime > API/Runtime/Media > API/Runtime/Media/IMediaControls
Description
Set the current playback rate.
A playback rate of 1.0 will play the media normally at real-time. A rate of 0.0 corresponds to pausing playback. A negative rate, if supported, plays the media in reverse, and a rate larger than 1.0 fast forwards playback.
| Name | SetRate |
| Type | function |
| Header File | /Engine/Source/Runtime/Media/Public/IMediaControls.h |
| Include Path | #include "IMediaControls.h" |
bool SetRate
(
float Rate
)
true on success, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| Rate | The playback rate to set. |