Cancel loading assets on switching backend

This commit is contained in:
Arkadiusz Fal
2022-11-13 13:28:25 +01:00
parent fe9b7c03ca
commit 815d0b3ae8
4 changed files with 18 additions and 1 deletions

View File

@@ -353,6 +353,10 @@ final class MPVBackend: PlayerBackend {
isPlaying ? pause() : play()
}
func cancelLoads() {
stop()
}
func stop() {
client?.stop()
}