commit 5dc3e2635ee15f660c03c759adaf1081ef1bad37
parent 2713e76e177258655abcaca0442eee93346ad051
Author: William Casarin <jb55@jb55.com>
Date: Tue, 30 May 2023 18:38:04 -0700
video-player: don't randomly stop video
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/damus/Views/Video/DamusVideoPlayer.swift b/damus/Views/Video/DamusVideoPlayer.swift
@@ -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