flutter_ijkplayer icon indicating copy to clipboard operation
flutter_ijkplayer copied to clipboard

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

Open hsnbsst opened this issue 4 years ago • 1 comments

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 avatar Jan 12 '21 15:01 hsnbsst

他里面提供了方法

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

Wisdozzh avatar Sep 27 '22 01:09 Wisdozzh