Skip to content

Commit

Permalink
Merge pull request #765 from FantasyKingdom/main
Browse files Browse the repository at this point in the history
修复百度网盘视频链接无法播放的问题
  • Loading branch information
kingslay authored Apr 4, 2024
2 parents ccb962e + d1d3fba commit 342b021
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/KSPlayer/AVPlayer/KSOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ open class KSOptions {
formatContextOptions["reconnect"] = 1
formatContextOptions["reconnect_streamed"] = 1
// 这个是用来开启http的链接复用(keep-alive)。vlc默认是打开的,所以这边也默认打开。
formatContextOptions["multiple_requests"] = 1
//开启这个,百度网盘的视频链接无法播放
//formatContextOptions["multiple_requests"] = 1
// 下面是用来处理秒开的参数,有需要的自己打开。默认不开,不然在播放某些特殊的ts直播流会频繁卡顿。
// formatContextOptions["auto_convert"] = 0
// formatContextOptions["fps_probe_size"] = 3
Expand Down

0 comments on commit 342b021

Please sign in to comment.