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

[Need help] var dataSource = DataSource.network("", headers:<String,String>{}); not working #280

Open
hsnbsst opened this issue Jan 12, 2021 · 1 comment
Labels
help wanted Extra attention is needed wait confirm Waiting for developer confirmation

Comments

@hsnbsst
Copy link

hsnbsst commented Jan 12, 2021

Describe your needs

If possible, add prototypes / designs and other supporting documents to help others understand your needs.

"The headers attribute is not working, I am adding a referrer, but it is not functional."

@hsnbsst hsnbsst added help wanted Extra attention is needed wait confirm Waiting for developer confirmation labels Jan 12, 2021
@Wisdozzh
Copy link

他里面提供了方法

controller.setNetworkDataSource(url, autoPlay: true, headers: {'host': ' 127.0.0.1'})

但是注意的是,header的value值前面必须添加一个空格才可以
在ijkplayer里面也是相同的解决方案
bilibili/ijkplayer#4946
bilibili/ijkplayer#3693
bilibili/ijkplayer#2648

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed wait confirm Waiting for developer confirmation
Projects
None yet
Development

No branches or pull requests

2 participants