ijkPlayer-IJKFFOptions配置缩短视频起播时间

版权声明:本文为博主原创文章,未经博主允许不得转载。联系博主:QQ群:①群:446310206 ②群:426087546(付费群,介意勿加) https://blog.csdn.net/qq_31810357/article/details/84523237
- (IJKFFOptions *)options {
    if (!_options) {
        _options = [IJKFFOptions optionsByDefault];
        /// 精准seek
        [_options setPlayerOptionIntValue:1 forKey:@"enable-accurate-seek"];
        
        /// Set param
        [_options setFormatOptionIntValue:1024 * 16 forKey:@"probsize"];
        [_options setFormatOptionIntValue:50000 forKey:@"analyzeduration"];
        [_options setPlayerOptionIntValue:0 forKey:@"videotoolbox"];
        [_options setCodecOptionIntValue:IJK_AVDISCARD_DEFAULT forKey:@"skip_loop_filter"];
        [_options setCodecOptionIntValue:IJK_AVDISCARD_DEFAULT forKey:@"skip_frame"];
       
        /// Param for playback
        [_options setPlayerOptionIntValue:0 forKey:@"max_cached_duration"];
        [_options setPlayerOptionIntValue:0 forKey:@"infbuf"];
        [_options setPlayerOptionIntValue:1 forKey:@"packet-buffering"];
    }
    return _options;
}

猜你喜欢

转载自blog.csdn.net/qq_31810357/article/details/84523237