Skip to content

Commit

Permalink
fix #637
Browse files Browse the repository at this point in the history
  • Loading branch information
kingslay committed Nov 15, 2023
1 parent e4a4d32 commit 7d38e03
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Demo/demo-iOS/demo-iOS/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class CustomVideoPlayerView: VideoPlayerView {
print("audio name: \(track.name) language: \(track.language ?? "")")
}
for track in layer.player.tracks(mediaType: .video) {
print("video name: \(track.name) bitRate: \(track.bitRate) fps: \(track.nominalFrameRate) depth: \(track.depth) colorPrimaries: \(track.colorPrimaries ?? "") colorPrimaries: \(track.transferFunction ?? "") yCbCrMatrix: \(track.yCbCrMatrix ?? "") codecType: \(track.mediaSubType.rawValue.string)")
print("video name: \(track.name) bitRate: \(track.bitRate) fps: \(track.nominalFrameRate) colorPrimaries: \(track.colorPrimaries ?? "") colorPrimaries: \(track.transferFunction ?? "") yCbCrMatrix: \(track.yCbCrMatrix ?? "") codecType: \(track.mediaSubType.rawValue.string)")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion KSPlayer.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'KSPlayer'
s.version = '1.0'
s.version = '1.1.0'
s.summary = 'Video Player Using Swift, based on AVPlayer,FFmpeg'

s.description = <<-DESC
Expand Down
1 change: 0 additions & 1 deletion Sources/KSPlayer/AVPlayer/KSOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ open class KSOptions {
formatContextOptions["auto_convert"] = 0
formatContextOptions["fps_probe_size"] = 3
// formatContextOptions["max_analyze_duration"] = 300 * 1000

formatContextOptions["reconnect"] = 1
// 开启这个,纯ipv6地址会无法播放。
// formatContextOptions["reconnect_at_eof"] = 1
Expand Down
1 change: 0 additions & 1 deletion Sources/KSPlayer/MEPlayer/AudioEnginePlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ public class AudioEnginePlayer: AudioOutput {
engine.attach(sourceNode)
var nodes: [AVAudioNode] = [sourceNode]
nodes.append(contentsOf: audioNodes())
nodes.append(engine.mainMixerNode)
if audioFormat.channelCount > 2 {
nodes.append(engine.outputNode)
}
Expand Down

0 comments on commit 7d38e03

Please sign in to comment.