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 set headers #636

Open
zhouxinghong opened this issue Feb 3, 2025 · 4 comments
Open

How to set headers #636

zhouxinghong opened this issue Feb 3, 2025 · 4 comments

Comments

@zhouxinghong
Copy link

zhouxinghong commented Feb 3, 2025

Some videos need to add request headers to play. Can request headers be added to LAV filter?

I found a way to add in AVDictionary.

AVDictionary *options = nullptr;
av_dict_sett(&options, "headers", ");

@Nevcairiel
This requires modifying the source code. I hope it can be set directly in the ILAVFSettings interface.
There are many network streaming videos that need to set custom headers.

Please, consider implementing this feature. Thank you so much!

@zhouxinghong zhouxinghong changed the title How to set user headers How to set headers Feb 3, 2025
@ale5000-git
Copy link

ale5000-git commented Feb 3, 2025

You can set User-Agent and Referer, see here:
9070300
56aab6a

@zhouxinghong
Copy link
Author

Thank you very much for your answer!
Many live streaming videos need to add request headers to play. So how to solve this problem?

@ale5000-git
Copy link

I'm just reporting what can be already done, for everything else you have to wait the reply of the author of this project.

@zhouxinghong
Copy link
Author

Thank you very much for your answer!

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

2 participants