stop [1/2]

Stops media track playback.

int stop();

After calling this method, to play again, you need to call open or openWithMediaSource to reopen the media resource.

Timing

Call this method after playback.

Return Values

  • 0: Success.
  • < 0: Failure.