Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kingslay committed Nov 24, 2024
1 parent 91918a8 commit 5d7f222
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Feature | LGPL | GPL |
|Annex-B async hardware decoding(Live Stream)|||
|Use the fonts in the video to render subtitles|||
|Use memory cache for fast seek in short time range|||
|Offline AI real-time subtitle generation and translation|||
|Full display of ass subtitles effect(Render as image using libass)|||
|Play videos in a small window in the App (resumable, supports tvos and ios)|||
|FFmpeg version|7.0.2|6.1.0|
Expand Down
1 change: 1 addition & 0 deletions Sources/KSPlayer/AVPlayer/KSPlayerLayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ extension KSPlayerLayer {
switch type {
case .began:
pause()

case .ended:
// An interruption ended. Resume playback, if appropriate.

Expand Down
4 changes: 2 additions & 2 deletions Sources/KSPlayer/MEPlayer/AudioGraphPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ public final class AudioGraphPlayer: AudioOutput, AudioDynamicsProcessor {
var audioStreamBasicDescription = audioFormat.formatDescription.audioStreamBasicDescription
let audioStreamBasicDescriptionSize = UInt32(MemoryLayout<AudioStreamBasicDescription>.size)
let channelLayout = audioFormat.channelLayout?.layout
[audioUnitForTimePitch, audioUnitForDynamicsProcessor, audioUnitForMixer, audioUnitForOutput].forEach { unit in
guard let unit else { return }
for unit in [audioUnitForTimePitch, audioUnitForDynamicsProcessor, audioUnitForMixer, audioUnitForOutput] {
guard let unit else { continue }
AudioUnitSetProperty(unit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input, 0,
Expand Down
1 change: 0 additions & 1 deletion Sources/KSPlayer/MEPlayer/Model.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ public extension KSOptions {
} else {
return CGColorSpace(name: CGColorSpace.itur_2020)
}

default:
return CGColorSpace(name: CGColorSpace.sRGB)
}
Expand Down

0 comments on commit 5d7f222

Please sign in to comment.