remove bagged focus - also don't add subrips to VLC playback.
This commit is contained in:
parent
93a25eb9c4
commit
c61ca3ce4a
|
@ -42,17 +42,18 @@ struct MainTabView: View {
|
|||
HomeView()
|
||||
.offset(y: -1) // don't remove this. it breaks tabview on 4K displays.
|
||||
.tabItem {
|
||||
Text("All Media")
|
||||
Text("Home")
|
||||
Image(systemName: "house")
|
||||
|
||||
}
|
||||
.tag(Tab.home)
|
||||
.tag(Tab.allMedia)
|
||||
|
||||
Text("Library")
|
||||
.tabItem {
|
||||
Text("Home")
|
||||
Text("All Media")
|
||||
Image(systemName: "folder")
|
||||
}
|
||||
.tag(Tab.allMedia)
|
||||
.tag(Tab.home)
|
||||
|
||||
SettingsView(viewModel: SettingsViewModel())
|
||||
.offset(y: -1) // don't remove this. it breaks tabview on 4K displays.
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
import SwiftUI
|
||||
import JellyfinAPI
|
||||
import SwiftUIFocusGuide
|
||||
|
||||
struct MovieItemView: View {
|
||||
@ObservedObject var viewModel: MovieItemViewModel
|
||||
|
@ -20,8 +19,6 @@ struct MovieItemView: View {
|
|||
|
||||
@State var wrappedScrollView: UIScrollView?
|
||||
|
||||
@StateObject var focusBag = SwiftUIFocusBag()
|
||||
|
||||
@Namespace private var namespace
|
||||
|
||||
func onAppear() {
|
||||
|
@ -158,7 +155,6 @@ struct MovieItemView: View {
|
|||
Spacer()
|
||||
}
|
||||
.padding(.top, 15)
|
||||
.addFocusGuide(using: focusBag, name: "actionButtons", destinations: [.bottom: "moreLikeThis"], debug: false)
|
||||
}
|
||||
}.padding(.top, 50)
|
||||
|
||||
|
@ -177,7 +173,6 @@ struct MovieItemView: View {
|
|||
Spacer().frame(width: 45)
|
||||
}
|
||||
}.padding(EdgeInsets(top: -30, leading: -90, bottom: 0, trailing: -90))
|
||||
.addFocusGuide(using: focusBag, name: "moreLikeThis", destinations: [.top: "actionButtons"], debug: false)
|
||||
.frame(height: 360)
|
||||
}
|
||||
}.padding(EdgeInsets(top: 90, leading: 90, bottom: 0, trailing: 90))
|
||||
|
|
|
@ -9,14 +9,11 @@
|
|||
|
||||
import SwiftUI
|
||||
import JellyfinAPI
|
||||
import SwiftUIFocusGuide
|
||||
|
||||
struct SeasonItemView: View {
|
||||
@ObservedObject var viewModel: SeasonItemViewModel
|
||||
@State var wrappedScrollView: UIScrollView?
|
||||
|
||||
@StateObject var focusBag = SwiftUIFocusBag()
|
||||
|
||||
@Environment(\.resetFocus) var resetFocus
|
||||
@Namespace private var namespace
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
import SwiftUI
|
||||
import JellyfinAPI
|
||||
import SwiftUIFocusGuide
|
||||
|
||||
struct SeriesItemView: View {
|
||||
@ObservedObject var viewModel: SeriesItemViewModel
|
||||
|
@ -20,8 +19,6 @@ struct SeriesItemView: View {
|
|||
|
||||
@State var wrappedScrollView: UIScrollView?
|
||||
|
||||
@StateObject var focusBag = SwiftUIFocusBag()
|
||||
|
||||
@Environment(\.resetFocus) var resetFocus
|
||||
@Namespace private var namespace
|
||||
|
||||
|
|
|
@ -31,15 +31,13 @@ struct SettingsView: View {
|
|||
Picker("Default local quality", selection: $inNetworkStreamBitrate) {
|
||||
ForEach(self.viewModel.bitrates, id: \.self) { bitrate in
|
||||
Text(bitrate.name).tag(bitrate.value)
|
||||
}.padding(.leading, 90)
|
||||
.padding(.trailing, 90)
|
||||
}
|
||||
}
|
||||
|
||||
Picker("Default remote quality", selection: $outOfNetworkStreamBitrate) {
|
||||
ForEach(self.viewModel.bitrates, id: \.self) { bitrate in
|
||||
Text(bitrate.name).tag(bitrate.value)
|
||||
}.padding(.leading, 90)
|
||||
.padding(.trailing, 90)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -229,7 +229,7 @@ class VideoPlayerViewController: UIViewController, VideoPlayerSettingsDelegate,
|
|||
}
|
||||
|
||||
subtitleTrackArray.forEach { sub in
|
||||
if sub.id != -1 && sub.delivery == .external {
|
||||
if sub.id != -1 && sub.delivery == .external && sub.codec != "subrip" {
|
||||
mediaPlayer.addPlaybackSlave(sub.url!, type: .subtitle, enforce: false)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue