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

flv. js本身有支援身份認證的功能 #814

Open
yanhua1012 opened this issue May 29, 2024 · 2 comments
Open

flv. js本身有支援身份認證的功能 #814

yanhua1012 opened this issue May 29, 2024 · 2 comments

Comments

@yanhua1012
Copy link

請問 flv. js本身有支援身份認證的功能嗎?例如以 jwt, cookies 、header 的方式帶 token 、帳密的方式。
可以參考文件的哪一個章節,謝謝。

@xqq
Copy link
Contributor

xqq commented May 29, 2024

@yanhua1012

This repository could not be maintained by me anymore. You'd better migrate to mpegts.js.

You can append custom headers through config.headers by providing an object of Key-Value pairs of custom headers. It will be appended when requesting HTTP streaming.

If you want to pass cookies, enable the withCredentials field inside the MediaDataSource.

Both of them will be limited by the browser's CORS policy.

For further discussions, please post new issues in the mpegts.js repository.

@yanhua1012
Copy link
Author

謝謝您的專業回覆,很具參考加值。我會改至 mpegts.js 討論。
另外能否請教,如果以 webSocket 的方式進行連線,
上述的 header 與 withCredential 仍有作用嗎?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants