Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ijk内核播放 出现广告 #2997

Closed
ZhuSky opened this issue Oct 13, 2020 · 8 comments
Closed

ijk内核播放 出现广告 #2997

ZhuSky opened this issue Oct 13, 2020 · 8 comments

Comments

@ZhuSky
Copy link

ZhuSky commented Oct 13, 2020

问题描述:

使用ijk内核播放时,出现广告
视频地址:https://video.kssznuu.cn/20200807/TiqZwGQt/index.m3u8
image
使用exo内核 就可以正常播放

问题机型/系统:

三星s8, android10

GSY依赖版本

'com.shuyu:GSYVideoPlayer:7.1.6'

Demo中的复现步骤

修改内核为 PlayerFactory.setPlayManager(IjkPlayerManager.class);
修改播放器地址为:https://video.kssznuu.cn/20200807/TiqZwGQt/index.m3u8

@ZhuSky
Copy link
Author

ZhuSky commented Oct 13, 2020

@CarGuo

@CarGuo
Copy link
Owner

CarGuo commented Oct 13, 2020

????

@ZhuSky
Copy link
Author

ZhuSky commented Oct 13, 2020

您可以试一下,这个比较纳闷,麻烦看一看

@clairelee826
Copy link

您可以试一下,这个比较纳闷,麻烦看一看

那个是m3u8里面的广告。。。

@ZhuSky
Copy link
Author

ZhuSky commented Oct 18, 2020

这个播放广告的问题解决了
我原来使用的是api 'com.shuyu:GSYVideoPlayer:7.1.6'
修改为:api 'com.shuyu:gsyVideoPlayer-ex_so:7.1.6'
就可以播放,没有广告

还有一个问题ijk播放内核的header中为啥存在两份同样的参数??
image
比如上图的Useer-Agent,第一个就莫名其妙。第二个就更懵了,参数中还有“Useer-Agent”
image

@ZhuSky
Copy link
Author

ZhuSky commented Oct 18, 2020

@clairelee826

@ZhuSky
Copy link
Author

ZhuSky commented Oct 18, 2020

@CarGuo

@ZhuSky
Copy link
Author

ZhuSky commented Oct 19, 2020

问题已解决:主要是因为header的值前面需要加一个空格
https://github.com/bilibili/ijkplayer/pull/4946
另给大家放一个 看到的踩坑记录
https://www.jianshu.com/p/0ae5924cc7d6

@ZhuSky ZhuSky closed this as completed Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants