support live streaming

This commit is contained in:
jazzfool 2020-10-10 13:05:34 +11:00
parent 09286fbb0f
commit 1cafb91105
2 changed files with 20 additions and 9 deletions

View file

@ -36,6 +36,7 @@ impl Application for App {
.unwrap(),
)
.unwrap(),
false,
)
.unwrap(),
pause_btn: Default::default(),
@ -53,7 +54,9 @@ impl Application for App {
Message::TogglePause => {
self.video.set_paused(!self.video.paused());
}
Message::VideoPlayerMessage(msg) => self.video.update(msg),
Message::VideoPlayerMessage(msg) => {
self.video.update(msg);
}
}
Command::none()