mirror of
https://github.com/yattee/yattee.git
synced 2025-10-10 09:28:15 +00:00
switch mpv to mpvkit
This commit is contained in:
@@ -6,6 +6,7 @@ import Logging
|
||||
import MediaPlayer
|
||||
import Repeat
|
||||
import SwiftUI
|
||||
import MPVKit
|
||||
|
||||
final class MPVBackend: PlayerBackend {
|
||||
static var timeUpdateInterval = 0.5
|
||||
@@ -467,17 +468,6 @@ final class MPVBackend: PlayerBackend {
|
||||
startClientUpdates()
|
||||
onFileLoaded = nil
|
||||
|
||||
case MPV_EVENT_PAUSE:
|
||||
DispatchQueue.main.async { [weak self] in self?.handleEndOfFile() }
|
||||
isPlaying = false
|
||||
networkStateTimer.start()
|
||||
|
||||
case MPV_EVENT_UNPAUSE:
|
||||
isPlaying = true
|
||||
isLoadingVideo = false
|
||||
isSeeking = false
|
||||
networkStateTimer.start()
|
||||
|
||||
case MPV_EVENT_VIDEO_RECONFIG:
|
||||
model.updateAspectRatio()
|
||||
|
||||
|
Reference in New Issue
Block a user