video-player: don't randomly stop video
This commit is contained in:
@@ -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