PlayerWidget: Rewind on pause.

This commit is contained in:
Jordan Petridis 2018-06-16 19:50:23 +03:00
parent 2fcb8d915d
commit 745afb32a3

View File

@ -332,6 +332,7 @@ impl PlayerExt for PlayerWidget {
self.controls.play.show();
self.player.pause();
self.seek(ClockTime::from_seconds(5), SeekDirection::Backwards);
}
// Adapted from https://github.com/philn/glide/blob/b52a65d99daeab0b487f79a0e1ccfad0cd433e22/src/player_context.rs#L219-L245