diff --git a/Packages/Status/Sources/Status/Media/VideoPlayerView.swift b/Packages/Status/Sources/Status/Media/VideoPlayerView.swift index 7489a211..d22a6309 100644 --- a/Packages/Status/Sources/Status/Media/VideoPlayerView.swift +++ b/Packages/Status/Sources/Status/Media/VideoPlayerView.swift @@ -68,6 +68,9 @@ struct VideoPlayerView: View { }.onAppear { viewModel.preparePlayer(autoPlay: preferences.autoPlayVideo) } + .onDisappear { + viewModel.pause() + } .cornerRadius(4) .onChange(of: scenePhase, perform: { scenePhase in switch scenePhase {