fix flac support and try to fix control bug
This commit is contained in:
parent
5cf959336d
commit
7ee7f0d27f
|
@ -100,6 +100,7 @@ class DeviceProfileBuilder {
|
||||||
}
|
}
|
||||||
|
|
||||||
public func buildProfile() -> DeviceProfileRoot {
|
public func buildProfile() -> DeviceProfileRoot {
|
||||||
|
print(CPUinfo())
|
||||||
let MaxStreamingBitrate = bitrate;
|
let MaxStreamingBitrate = bitrate;
|
||||||
let MaxStaticBitrate = bitrate;
|
let MaxStaticBitrate = bitrate;
|
||||||
let MusicStreamingTranscodingBitrate = 384000;
|
let MusicStreamingTranscodingBitrate = 384000;
|
||||||
|
@ -129,14 +130,14 @@ class DeviceProfileBuilder {
|
||||||
|
|
||||||
//Build transcoding profiles
|
//Build transcoding profiles
|
||||||
var TranscodingProfiles: [_AVTranscodingProfile] = [];
|
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)
|
//Device supports Dolby Digital (AC3, EAC3)
|
||||||
if(supportsFeature(minimumSupported: .A8X)) {
|
if(supportsFeature(minimumSupported: .A8X)) {
|
||||||
if(supportsFeature(minimumSupported: .A10)) {
|
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)]
|
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 {
|
} 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)]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -94,6 +94,7 @@ struct VideoPlayerView: View {
|
||||||
}
|
}
|
||||||
|
|
||||||
sendProgressReport(eventName: "unpause")
|
sendProgressReport(eventName: "unpause")
|
||||||
|
|
||||||
while(vlcplayer.state != VLCMediaPlayerState.stopped) {
|
while(vlcplayer.state != VLCMediaPlayerState.stopped) {
|
||||||
_streamLoading.wrappedValue = false;
|
_streamLoading.wrappedValue = false;
|
||||||
while(vlcplayer.isPlaying) {
|
while(vlcplayer.isPlaying) {
|
||||||
|
@ -375,6 +376,7 @@ struct VideoPlayerView: View {
|
||||||
}
|
}
|
||||||
|
|
||||||
func resetTimer() {
|
func resetTimer() {
|
||||||
|
print("resetTimer ran")
|
||||||
if(_inactivity.wrappedValue == false) {
|
if(_inactivity.wrappedValue == false) {
|
||||||
_inactivity.wrappedValue = true;
|
_inactivity.wrappedValue = true;
|
||||||
return;
|
return;
|
||||||
|
@ -390,6 +392,9 @@ struct VideoPlayerView: View {
|
||||||
vlcplayer.stop()
|
vlcplayer.stop()
|
||||||
}).padding(EdgeInsets(top: 0, leading: UIDevice.current.hasNotch ? 30 : 0, bottom: 0, trailing: UIDevice.current.hasNotch ? 30 : 0))
|
}).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(
|
.overlay(
|
||||||
VStack() {
|
VStack() {
|
||||||
HStack() {
|
HStack() {
|
||||||
|
|
Loading…
Reference in New Issue