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
984 stars 197 forks source link

取消了rtsp和rtmp的支持? #672

Closed trial closed 10 months ago

trial commented 10 months ago

之前一直可以播放这2种格式,今天更新了一下库,发现无法播放了

kingslay commented 10 months ago

这两个还是支持的,报什么错呢?你可以把这下面这个代码注释掉。看还会不会报错 formatContextOptions["protocol_whitelist"] = "file,http,https,tcp,tls,crypto,async,cache,data,httpproxy"

trial commented 10 months ago

注释后rtmp正常播放了,rtsp似乎获取不到size,一直buffering中,用iina,potplayer正常播放 测试地址 rtsp://rtspstream:57334873597105e615775fa29629e76d@zephyr.rtsp.stream/pattern

2023-11-27 10:45:07.024962+0800 tv[9854:1875157] [si_destination_compare] send failed: Invalid argument 2023-11-27 10:45:12.788156+0800 tv[9854:1875157] warning KSPlayer: MEPlayerItem.swift:129 MEPlayerItem | Could not find codec parameters for stream 0 (Video: h264, none): unspecified size

kingslay commented 10 months ago

你把formatContextOptions["multiple_requests"] = 1 注释掉。看下行不行

kingslay commented 10 months ago

我看你这个流,播放一段时间之后。就说流结束了。导致无法继续加载了