EasyDarwin / EasyPlayer.js

EasyPlayer.js H5播放器,是一款免费的能够同时支持HTTP、RTMP、HTTP-FLV、HLS(m3u8)直播与点播等多种协议,支持H.264、H.265、AAC等多种音视频编码格式,支持mse、asm、wasm等多种解码方式,支持Windows、Linux、Android、iOS全平台终端的H5播放器。EasyPlayer.js H5 Player support HTTP/RTMP/HTTP-FLV/HLS(m3u8) live streaming & vod streaming,support H.264/H.265/AAC video & audio codec,support mse/asm/wasm decode mode,support Windows/Linux/Android/iOS platform,EasyPlayer.js uses leading-edge technology.
http://www.tsingsee.com/
1.66k stars 313 forks source link

How to add Http headers when loading video resources? #56

Open czf0613 opened 3 years ago

czf0613 commented 3 years ago

In my project, I need to add a "token" in the request header to authenticate the user. How could I add this while using this player? Thanks a lot.

Likeadust commented 3 years ago

Add after stream address is supported ?token=....

czf0613 commented 3 years ago

Add after stream address is supported ?token=....

I don't think it's a good solution because we have oauth support in the backend, so we need a special field in the http header to perform authentication. I hope this issue can be fixed. Thanks a lot.