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, support subtitles.
GNU General Public License v3.0
869 stars 184 forks source link

tvos17.2播放某些格式视频会闪退 #720

Closed sunzongzheng closed 5 months ago

sunzongzheng commented 5 months ago

Describe the bug 在tvos17.2上播放Demo工程中的m3u8视频会闪退,同样的代码,tvos17.0上不会

To Reproduce

  1. 直接使用本仓库的Demo工程
  2. 运行在模拟器tvos17.2上,选择内置的m3u8视频进行播放即可,等待一段时间后就会报错

Expected behavior 正常播放

Screenshots

image

下面这是我自己的项目中播放另外一个m3u8视频时的报错,不知道是不是一个问题,由于视频地址具有时效性,所以不贴上来了

image

Platform (please complete the following information):

Additional context Add any other context about the problem here. or Using FFmpeg to extract problematic video segments and upload them to GitHub.(ffmpeg -i http://xxx.com/123.mkv -map 0 -c copy -ss 00:00:50 -to 00:04:10 1.mkv)

sunzongzheng commented 5 months ago

我再测试了fmp4、https、mkv视频也会,其他的视频类型好像都无法加载只在日志中报警告。

会报错的这些视频,在tvOS 17.0上正常

kingslay commented 5 months ago

这是模拟器tvOS 17.2的bug 需要等待苹果修复。真机的 tvOS 17.2不会有问题