kingslay / KSPlayer

A video player for iOS、macOS、tvOS、visionOS , based on AVPlayer and FFmpeg, support the horizontal, vertical screen. support adjust volume, brightness and seek by slide, SwiftUI, support subtitles.
https://apps.apple.com/app/tracyplayer/id6450770064
GNU General Public License v3.0
980 stars 198 forks source link

在播放途中闪退 #717

Closed pcccccc closed 8 months ago

pcccccc commented 8 months ago

播放m3u8直播中,出现了闪退问题。

Thread 1: Fatal error: Double value cannot be converted to Int because it is either infinite or NaN

崩溃位置:

KSVideoPlayer

行数:

238

播放器内核:

KSAVPlayer

kingslay commented 8 months ago

给个KSAVPlayer可以播放的直播链接

pcccccc commented 8 months ago

给个KSAVPlayer可以播放的直播链接

主要是不太好给,,,一般都是有时间限制的。。

kingslay commented 8 months ago

那你就看下current time 和total time的值分别是什么

pcccccc commented 8 months ago

https://d1--cn-gotcha204-4.bilivideo.com/live-bvc/199432/live_3951100_7420655_minihevc/index.m3u8?expires=1704943897&len=0&oi=3708725859&pt=h5&qn=0&trid=1007abd386422c4440f19f36f1c40e57aa97&sigparams=cdn,expires,len,oi,pt,qn,trid&cdn=cn-gotcha204&sign=924ceb3af44b42119406965d89c412ae&sk=657866af8fc16d8b2b84dfdde3e98143970e231f4ba7166220a3354568f1c7c7&p2p_type=4294967295&sl=4&free_type=0&mid=0&pp=rtmp&source=onetier&trace=20&site=95c47bd032b4ed5670e2fa1f8febf436&order=2

不知道直接给你是否可用,而且这个问题也不是必现的