Closed yunusmete closed 5 years ago
Hi,you can set headers like this:
videoInfo.addOption(Option.create(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "headers", "Connection: keep-alive\r\nuser-agent: okhttp\r\n"))
every header KV pairs separate by \r\n
Thanks @tcking, closing the issue.
Hi everyone,
I want to set user-agent while set video URI and found that this feature is implemented in GiraffePlayer like that.
Unfortunately, there is no public API to use. Is there any way to achieve this? Thanks