video-player: don't randomly stop video
This commit is contained in:
1 parent
2713e76e17
commit
5dc3e2635e
1 file changed
+1
-4
@@ -45,12 +45,9 @@ struct DamusVideoPlayer: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
ZStack(alignment: .bottomTrailing) {
|
ZStack(alignment: .bottomTrailing) {
|
||||||
VideoPlayer(url: url, model: model)
|
VideoPlayer(url: url, model: model)
|
||||||
.onAppear{
|
.onAppear {
|
||||||
model.start()
|
model.start()
|
||||||
}
|
}
|
||||||
.onDisappear {
|
|
||||||
model.stop()
|
|
||||||
}
|
|
||||||
|
|
||||||
if model.has_audio == true {
|
if model.has_audio == true {
|
||||||
MuteIcon
|
MuteIcon
|
||||||
|
|||||||
Reference in new issue
Block a user