Skip to content

Commit

Permalink
不要自动选择字幕
Browse files Browse the repository at this point in the history
  • Loading branch information
kingslay committed Sep 22, 2023
1 parent 9e08954 commit 1284060
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Sources/KSPlayer/AVPlayer/KSVideoPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ extension KSVideoPlayer.Coordinator: KSPlayerLayerDelegate {
playbackRate = layer.player.playbackRate
videoTracks = layer.player.tracks(mediaType: .video)
audioTracks = layer.player.tracks(mediaType: .audio)
subtitleModel.selectedSubtitleInfo = subtitleModel.subtitleInfos.first
selectedAudioTrack = audioTracks.first { $0.isEnabled }
selectedVideoTrack = videoTracks.first { $0.isEnabled }
if let subtitleDataSouce = layer.player.subtitleDataSouce {
Expand Down

0 comments on commit 1284060

Please sign in to comment.