stop

Stops playing the media track.

virtual int stop() = 0;

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

Timing

Call this method after playback starts.

Return Values

  • 0: The method call succeeds.
  • < 0: The method call fails.