ijkplayer
ijkplayer copied to clipboard
m3u8 有些链接播放很慢20s才能加载出来
测试地址 https://i.mjh.nz/SamsungTVPlus/CAAJ2700011IF.m3u8
使用iOS AVPlayer 基本四五秒就可以加载出来
let options = IJKFFOptions.byDefault()
//播放前的探测Size,默认是1M, 改小一点会出画面更快
options?.setPlayerOptionIntValue(1024 * 16, forKey: "probesize")
// options?.setPlayerOptionIntValue(3000, forKey: "max_cached_duration") options?.setPlayerOptionIntValue(1, forKey: "infbuf") options?.setPlayerOptionIntValue(0, forKey: "packet-buffering") //解码参数,画面更清晰 options?.setPlayerOptionIntValue(0, forKey: "skip_loop_filter") options?.setPlayerOptionIntValue(0, forKey: "skip_frame")
options?.setPlayerOptionIntValue(1, forKey: "videotoolbox")
options?.setPlayerOptionIntValue(300, forKey: "analyzeduration")
使用lite.sh编译的
地址失效了,可以到这里新提 issue 帮你看看: https://github.com/debugly/ijkplayer/issues/