Open john-dududu opened 6 months ago
测试地址 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编译的
测试地址 https://i.mjh.nz/SamsungTVPlus/CAAJ2700011IF.m3u8
使用iOS AVPlayer 基本四五秒就可以加载出来
// 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")
使用lite.sh编译的