bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.54k stars 8.13k forks source link

ijkplayer在ios10以下进入播放就崩溃 #3011

Open liuxiang6216424 opened 7 years ago

liuxiang6216424 commented 7 years ago

为了支持rtsp流的播放 按照网上的教程修改了一部分源码 从新编译了以下,可以播放rtsp流了.但是ios10以下的版本进入播放界面就闪退

yfxiarigit commented 7 years ago

我也是遇到了。还没有解决吧?

JoySeeDog commented 7 years ago

mark

liuxiang6216424 commented 7 years ago

已经解决,是ijkmedia/ijkplayr/ff_ffplay.c 中的 int64_t av_gettime_relative(void) 报错.具体的解决方法重写一个方法 int64_t av_gettime_relativeex(void) { return av_gettime() + 42 60 60 * INT64_C(1000000); } 把ff_ffplay.c 中的 int64_t av_gettime_relative(void) 方法全部替换成 int64_t av_gettime_relativeex(void) . 然后xcode 编译一下 就行了.

czboosj commented 7 years ago

mark

xinzhengzhang commented 7 years ago

use latest version

On Fri, May 5, 2017 at 11:16 AM, 格调main notifications@github.com wrote:

mark

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Bilibili/ijkplayer/issues/3011#issuecomment-299361064, or mute the thread https://github.com/notifications/unsubscribe-auth/ABayVX7Sz9ncpqmEW_yQ8cPk1M6exg74ks5r2pRzgaJpZM4NHBFK .

zhangfangtaozft commented 7 years ago

mark