Stop
Stops media playback.
bool Stop(Error *err = nullptr)
- Since
- Added since version v4.4.0.
After successfully calling OpenWithUrl and Play, you can call this method to stop playback. If you want to pause playback, call the Pause method. If opening the URL stream with OpenWithUrl fails, you need to call this method first, then call OpenWithUrl again to reopen the URL.
Timing
This method must be called after OpenWithUrl.
Parameters
- err
- Output parameter, status or error information. See Error.
Return Values
- true: Playback stopped successfully.
- false: Failed to stop playback.