diff --git a/JellyfinPlayer/DeviceProfileBuilder.swift b/JellyfinPlayer/DeviceProfileBuilder.swift index c1fe9f16..6082ee3e 100644 --- a/JellyfinPlayer/DeviceProfileBuilder.swift +++ b/JellyfinPlayer/DeviceProfileBuilder.swift @@ -100,6 +100,7 @@ class DeviceProfileBuilder { } public func buildProfile() -> DeviceProfileRoot { + print(CPUinfo()) let MaxStreamingBitrate = bitrate; let MaxStaticBitrate = bitrate; let MusicStreamingTranscodingBitrate = 384000; @@ -129,14 +130,14 @@ class DeviceProfileBuilder { //Build transcoding profiles var TranscodingProfiles: [_AVTranscodingProfile] = []; - TranscodingProfiles = [_AVTranscodingProfile(Container: "ts", Type: "Video", AudioCodec: "aac,mp3,wav", VideoCodec: "h264", Context: "Streaming", Protocol: "hls", MaxAudioChannels: "6", MinSegments: "2", BreakOnNonKeyFrames: true)] + TranscodingProfiles = [_AVTranscodingProfile(Container: "ts", Type: "Video", AudioCodec: "aac,mp3,wav", VideoCodec: "h264", Context: "Streaming", Protocol: "hls", MaxAudioChannels: "2", MinSegments: "2", BreakOnNonKeyFrames: true)] //Device supports Dolby Digital (AC3, EAC3) if(supportsFeature(minimumSupported: .A8X)) { if(supportsFeature(minimumSupported: .A10)) { TranscodingProfiles = [_AVTranscodingProfile(Container: "ts", Type: "Video", AudioCodec: "aac,mp3,wav,eac3,ac3,flac,opus", VideoCodec: "h264,hevc,hev1", Context: "Streaming", Protocol: "hls", MaxAudioChannels: "6", MinSegments: "2", BreakOnNonKeyFrames: true)] } else { - TranscodingProfiles = [_AVTranscodingProfile(Container: "ts", Type: "Video", AudioCodec: "ac3,eac3,wav,eac3,ac3,flac,opus", VideoCodec: "h264", Context: "Streaming", Protocol: "hls", MaxAudioChannels: "6", MinSegments: "2", BreakOnNonKeyFrames: true)] + TranscodingProfiles = [_AVTranscodingProfile(Container: "ts", Type: "Video", AudioCodec: "aac,mp3,wav,eac3,ac3,opus", VideoCodec: "h264", Context: "Streaming", Protocol: "hls", MaxAudioChannels: "2", MinSegments: "2", BreakOnNonKeyFrames: true)] } } diff --git a/JellyfinPlayer/VideoPlayerView.swift b/JellyfinPlayer/VideoPlayerView.swift index 9438afaa..b1acf80f 100644 --- a/JellyfinPlayer/VideoPlayerView.swift +++ b/JellyfinPlayer/VideoPlayerView.swift @@ -94,6 +94,7 @@ struct VideoPlayerView: View { } sendProgressReport(eventName: "unpause") + while(vlcplayer.state != VLCMediaPlayerState.stopped) { _streamLoading.wrappedValue = false; while(vlcplayer.isPlaying) { @@ -375,6 +376,7 @@ struct VideoPlayerView: View { } func resetTimer() { + print("resetTimer ran") if(_inactivity.wrappedValue == false) { _inactivity.wrappedValue = true; return; @@ -390,6 +392,9 @@ struct VideoPlayerView: View { vlcplayer.stop() }).padding(EdgeInsets(top: 0, leading: UIDevice.current.hasNotch ? 30 : 0, bottom: 0, trailing: UIDevice.current.hasNotch ? 30 : 0)) } + .introspectTabBarController { (UITabBarController) in + UITabBarController.tabBar.isHidden = true + } .overlay( VStack() { HStack() {