Stop

Stops playing media resource.

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

After you successfully play the URL stream using Play, call this method if you want to stop playing it. If you need to pause the playback, call Pause.

If you fail to open the URL stream using OpenWithUrl, call this method first, and then call OpenWithUrl to reopen the URL.

Call timing

Call this method after OpenWithUrl.

Restrictions

None.

Parameters

err
The state or error information: Error.

Returns

Whether the media resource stops playing:
  • true: Yes.
  • false: No.