Pause

Pauses the playback.

bool Pause(Error* err);
Since
v4.5.0

When you call Play to play a URL, if you want to pause the playback, you can call this method. If you need to stop the playback, call Stop.

Call timing

Call this method after Play.

Restrictions

None.

Parameters

err
The state or error information: Error.

Returns

Whether the playback has been successfully paused:
  • true: The playback is paused.
  • false: Pausing the playback fails.