BrikerMan / BMPlayer

A video player for iOS, based on AVPlayer, support the horizontal, vertical screen. support adjust volume, brightness and seek by slide, support subtitles.
https://eliyar.biz
MIT License
1.95k stars 418 forks source link

App Crash #363

Open 18633142594 opened 4 months ago

18633142594 commented 4 months ago

Check List

Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

BMPlayer version

1.3.2

Installed with

Issue Description

When you play the video, it flashes back, on iOS17, and then it turns out that the format of the video URL, it doesn't parse out, because it's underlined, the variable is kCacheScheme, and it crashes in this method down here

What

[Tell us about the issue] internal static func asset(for resouce: BMPlayerResourceDefinition) -> AVURLAsset { let asset = BMPlayerManager.shared.cacheManeger.playerItem(with: resouce.url) return asset!.asset as! AVURLAsset }

Reproduce

[The steps to reproduce this issue. What is the URL you were trying to play, where did you put your code, etc.]

Other Comment

[Add anything else here]