Stop voice note on video playback.

This commit is contained in:
Alex Hart
2022-04-08 10:42:38 -03:00
committed by Cody Henthorne
parent a87aa0fbe2
commit fc55be0916
4 changed files with 32 additions and 2 deletions

View File

@@ -220,6 +220,13 @@ public class VoiceNoteMediaController implements DefaultLifecycleObserver {
}
}
/**
* Pauses playback regardless of which audio slide is playing.
*/
public void pausePlayback() {
getMediaController().getTransportControls().pause();
}
/**
* Seeks to a given position if th given audio slide is playing. This call
* is ignored if the given audio slide is not currently playing.