1
0
mirror of git://jb55.com/damus synced 2024-10-06 03:33:22 +00:00

video-player: don't randomly stop video

This commit is contained in:
William Casarin 2023-05-30 18:38:04 -07:00
parent 2713e76e17
commit 5dc3e2635e

View File

@ -45,12 +45,9 @@ struct DamusVideoPlayer: View {
var body: some View {
ZStack(alignment: .bottomTrailing) {
VideoPlayer(url: url, model: model)
.onAppear{
.onAppear {
model.start()
}
.onDisappear {
model.stop()
}
if model.has_audio == true {
MuteIcon