flutter_ijkplayer
flutter_ijkplayer copied to clipboard
[Need help] var dataSource = DataSource.network("", headers:<String,String>{}); not working
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."
他里面提供了方法
controller.setNetworkDataSource(url, autoPlay: true, headers: {'host': ' 127.0.0.1'})
但是注意的是,header的value值前面必须添加一个空格才可以 在ijkplayer里面也是相同的解决方案 https://github.com/bilibili/ijkplayer/pull/4946 https://github.com/bilibili/ijkplayer/issues/3693 https://github.com/bilibili/ijkplayer/issues/2648