mirror of
git://jb55.com/damus
synced 2024-10-06 11:43:21 +00:00
video-player: don't randomly stop video
This commit is contained in:
parent
2713e76e17
commit
5dc3e2635e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user