Fix pausing on dismissing player

This commit is contained in:
Arkadiusz Fal
2021-11-05 15:58:51 +01:00
parent e2e864e9da
commit 1d8efbda58
2 changed files with 9 additions and 6 deletions

View File

@@ -118,11 +118,6 @@ struct VideoPlayerView: View {
}
#endif
}
.onDisappear {
if !player.playingInPictureInPicture {
player.pause()
}
}
}
func playerPlaceholder(geometry: GeometryProxy) -> some View {