it plays!

This commit is contained in:
Aiden Vigue 2021-05-25 09:41:19 -04:00
parent 96beaa5771
commit b31ff96ddf
5 changed files with 7 additions and 5 deletions

View File

@ -462,7 +462,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 15; CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_ASSET_PATHS = "\"JellyfinPlayer/Preview Content\""; DEVELOPMENT_ASSET_PATHS = "\"JellyfinPlayer/Preview Content\"";
DEVELOPMENT_TEAM = 9R8RREG67J; DEVELOPMENT_TEAM = 9R8RREG67J;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
@ -491,7 +491,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 15; CURRENT_PROJECT_VERSION = 16;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_ASSET_PATHS = "\"JellyfinPlayer/Preview Content\""; DEVELOPMENT_ASSET_PATHS = "\"JellyfinPlayer/Preview Content\"";
DEVELOPMENT_TEAM = 9R8RREG67J; DEVELOPMENT_TEAM = 9R8RREG67J;

View File

@ -315,7 +315,7 @@ struct ContentView: View {
} }
let defaults = UserDefaults.standard; let defaults = UserDefaults.standard;
if(defaults.integer(forKey: "InNetworkBandwidth") == 0) { if(defaults.integer(forKey: "InNetworkBandwidth") == 0) {
defaults.setValue(40000000, forKey: "inNetworkBandwidth") defaults.setValue(40000000, forKey: "InNetworkBandwidth")
} }
if(defaults.integer(forKey: "OutOfNetworkBandwidth") == 0) { if(defaults.integer(forKey: "OutOfNetworkBandwidth") == 0) {
defaults.setValue(40000000, forKey: "OutOfNetworkBandwidth") defaults.setValue(40000000, forKey: "OutOfNetworkBandwidth")

View File

@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string> <string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>15</string> <string>16</string>
<key>DTXApplicationID</key> <key>DTXApplicationID</key>
<string>8c1f6941-ec78-480c-b589-b41aca29a52e</string> <string>8c1f6941-ec78-480c-b589-b41aca29a52e</string>
<key>DTXBeaconURL</key> <key>DTXBeaconURL</key>

View File

@ -168,6 +168,7 @@ struct LibraryView: View {
if(prefill_id != "") { if(prefill_id != "") {
LoadingView(isShowing: $isLoading) { LoadingView(isShowing: $isLoading) {
ScrollView(.vertical) { ScrollView(.vertical) {
Spacer().frame(height: 16)
LazyVGrid(columns: tracks) { LazyVGrid(columns: tracks) {
ForEach(items, id: \.Id) { item in ForEach(items, id: \.Id) { item in
NavigationLink(destination: ItemView(item: item )) { NavigationLink(destination: ItemView(item: item )) {
@ -224,8 +225,8 @@ struct LibraryView: View {
}.frame(width: 100) }.frame(width: 100)
} }
} }
Spacer().frame(height: 2)
} }
Spacer().frame(height: 16)
} }
.onChange(of: isPortrait) { _ in .onChange(of: isPortrait) { _ in
recalcTracks() recalcTracks()

View File

@ -236,6 +236,7 @@ struct VideoPlayerView: View {
} else { } else {
builder.setMaxBitrate(bitrate: defaults.integer(forKey: "OutOfNetworkBandwidth")) builder.setMaxBitrate(bitrate: defaults.integer(forKey: "OutOfNetworkBandwidth"))
} }
print(builder.bitrate)
_selectedVideoQuality.wrappedValue = builder.bitrate; _selectedVideoQuality.wrappedValue = builder.bitrate;
let DeviceProfile = builder.buildProfile() let DeviceProfile = builder.buildProfile()