mirror of
https://github.com/yattee/yattee.git
synced 2024-12-25 06:53:42 +00:00
Minor fixes
This commit is contained in:
parent
2ae164e120
commit
dcfb86240b
@ -267,6 +267,7 @@ final class MPVBackend: PlayerBackend {
|
|||||||
|
|
||||||
case MPV_EVENT_FILE_LOADED:
|
case MPV_EVENT_FILE_LOADED:
|
||||||
onFileLoaded?()
|
onFileLoaded?()
|
||||||
|
startClientUpdates()
|
||||||
onFileLoaded = nil
|
onFileLoaded = nil
|
||||||
|
|
||||||
case MPV_EVENT_UNPAUSE:
|
case MPV_EVENT_UNPAUSE:
|
||||||
|
@ -24,9 +24,9 @@ final class MPVClient: ObservableObject {
|
|||||||
|
|
||||||
func create(frame: CGRect? = nil) {
|
func create(frame: CGRect? = nil) {
|
||||||
#if !os(macOS)
|
#if !os(macOS)
|
||||||
if let frame = frame {
|
if let frame = frame {
|
||||||
glView = MPVOGLView(frame: frame)
|
glView = MPVOGLView(frame: frame)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mpv = mpv_create()
|
mpv = mpv_create()
|
||||||
|
@ -97,12 +97,8 @@ struct VideoDetails: View {
|
|||||||
|
|
||||||
switch currentPage {
|
switch currentPage {
|
||||||
case .info:
|
case .info:
|
||||||
if player.isLoadingVideo {
|
ScrollView(.vertical, showsIndicators: false) {
|
||||||
PlaceholderProgressView()
|
detailsPage
|
||||||
} else {
|
|
||||||
ScrollView(.vertical, showsIndicators: false) {
|
|
||||||
detailsPage
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
case .queue:
|
case .queue:
|
||||||
PlayerQueueView(sidebarQueue: $sidebarQueue, fullScreen: $fullScreen)
|
PlayerQueueView(sidebarQueue: $sidebarQueue, fullScreen: $fullScreen)
|
||||||
|
Loading…
Reference in New Issue
Block a user