Skip to content

Commit

Permalink
解决字幕没有显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
kingslay committed Sep 24, 2023
1 parent da46488 commit b0b2bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/KSPlayer/AVPlayer/KSVideoPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ extension KSVideoPlayer: UIViewRepresentable {
return playerLayer
} else {
let playerLayer = KSPlayerLayer(url: url, options: options)
subtitleModel.url = url
playerLayer.delegate = self
self.playerLayer = playerLayer
subtitleModel.url = url
return playerLayer
}
}
Expand Down

0 comments on commit b0b2bfe

Please sign in to comment.