PlayerWidget: Rewind on pause.
This commit is contained in:
parent
2fcb8d915d
commit
745afb32a3
@ -332,6 +332,7 @@ impl PlayerExt for PlayerWidget {
|
|||||||
self.controls.play.show();
|
self.controls.play.show();
|
||||||
|
|
||||||
self.player.pause();
|
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
|
// Adapted from https://github.com/philn/glide/blob/b52a65d99daeab0b487f79a0e1ccfad0cd433e22/src/player_context.rs#L219-L245
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user