Ijkplayer: 最新版ijkplayer 无法播放hls协议(AES-128方式加密)的视频,网络差时,释放会ANR

Created on 25 Nov 2016  ·  8Comments  ·  Source: bilibili/ijkplayer

一、 最新版ijkplayer 无法播放hls协议(AES-128方式加密)的视频
0.4.5.1版本 ijkplayer可以正常播放

m3u8 文件示例:

EXTM3U

EXT-X-VERSION:3

EXT-X-TARGETDURATION:10

EXT-X-MEDIA-SEQUENCE:646

EXT-X-KEY :METHOD=AES-128,URI="http://key.jinqiu.com/key/getKey.do?pId=1&promId=56&token=XXXXXXXXXXXX",IV=0X31313131313131313131313131313131

EXTINF:10.000000,

stream0.ts?pId=1&promId=56

EXTINF:10.000000,

stream1.ts?pId=1&promId=56

EXTINF:10.000000,

stream2.ts?pId=1&promId=56

EXTINF:10.000000,

stream3.ts?pId=1&promId=56

EXTINF:10.000000,

stream4.ts?pId=1&promId=56

二、当播放网络视频时(网络环境较差时),视频还未加载完毕(调用了 setVideoPath();没有开始播放时),此时退出播放器,调用stopPlayBack()方法,会产生应用ANR。
亲测,哔哩哔哩Android客户端 也会存在此问题(当播放界面出现 ”开始视频缓冲...“ 字样时,此时按返回键返回上一界面,应用出现ANR)。@ctiao @xinzhengzhang

need-stream-sample

Most helpful comment

remove --disable-protocol=crypto in config/module-lite.sh and recompile it.

All 8 comments

Can not access the file.

remove --disable-protocol=crypto in config/module-lite.sh and recompile it.

@xinzhengzhang @liuyuejinqiu 请问anr的问题解决了吗?我这边最新代码还会出现anr。

@zhanggao 我没尝试最新版,不清楚

@liuyuejinqiu 你那边有解决这个问题吗?

@zhanggao 显然没有

hls 解析的问题解决了吗

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yuyashuai picture yuyashuai  ·  3Comments

liukuiqing picture liukuiqing  ·  3Comments

yuraoff picture yuraoff  ·  3Comments

aslgd picture aslgd  ·  4Comments

lingcimi picture lingcimi  ·  3Comments