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

mpegts 本身有支援身份認證的功能嗎 #194

Open
yanhua1012 opened this issue May 29, 2024 · 1 comment
Open

mpegts 本身有支援身份認證的功能嗎 #194

yanhua1012 opened this issue May 29, 2024 · 1 comment

Comments

@yanhua1012
Copy link

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

@xqq
Copy link
Owner

xqq commented May 30, 2024

@yanhua1012

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

Nope. The browser will determine whether cookies will be sent or not. We cannot control headers or cookies here.
https://github.com/xqq/mpegts.js/blob/master/src/io/websocket-loader.js#L54

For WebSocket, I'm not familiar with which situation the cookies will or won't be sent. Please investigate them by yourself.

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