LAVFilters icon indicating copy to clipboard operation
LAVFilters copied to clipboard

How to set user agent

Open sudongg opened this issue 4 years ago • 2 comments

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

sudongg avatar Apr 05 '21 03:04 sudongg

I found a way to add in AVDictionary.

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

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. @Nevcairiel

sudongg avatar Jan 05 '22 12:01 sudongg

@Nevcairiel Please, consider implementing this feature. Thank you.

iG8R avatar Nov 15 '22 11:11 iG8R