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

How to add the player request header? #697

Closed
zyi1992 opened this issue Dec 1, 2015 · 5 comments
Closed

How to add the player request header? #697

zyi1992 opened this issue Dec 1, 2015 · 5 comments

Comments

@zyi1992
Copy link

zyi1992 commented Dec 1, 2015

Is there any way to add http header for ijkplayer?

@qazmoon
Copy link

qazmoon commented Dec 1, 2015

ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "header_name", "header_string");
ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "header_name", head_int);

@bbcallen
Copy link
Contributor

ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "headers", ...);
https://ffmpeg.org/ffmpeg-protocols.html#http

@zyi1992
Copy link
Author

zyi1992 commented Dec 21, 2015

Thanks,that's work to me

@Blackquan
Copy link

hi, could you @qazmoon pls show more detail,
i dont know push that code to where
Thank you

@ndngiap
Copy link

ndngiap commented Aug 15, 2018

@Blackquan You will find it in IjkVideoView class

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

5 participants