Session Cookie support for streaming #3904
-
Hello gents, i have a question regarding using session cookie with dash.js player. We would like to use dash.js player in our product, unfortunatly we are somehow unable to utilize the session cookie. Currently when manifest is requested (or any other following chunk/manifest request) we send along with the response a header paramter Set-Cookie, which we are expecting to get in return to next request e.g. video/audio Inits/chunks etc.. Unfortunatlely it seems dash.js player ignores this Set-Cookie header. So my question is does dash.js player support this? If no can it be added into the code, if yes it some cofing param ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Have you tried API |
Beta Was this translation helpful? Give feedback.
-
Anyone knows what needs to be done or if i am doing something wrong ? Thanks |
Beta Was this translation helpful? Give feedback.
-
I did try on my side, when using API |
Beta Was this translation helpful? Give feedback.
-
Hello bbert, Thanks for the assistance, it was indeed a CORS issue, we manage to get it working with following commands:
And correctly set up CORS, one more time thanks for the help! I might get back with another questions one day :) |
Beta Was this translation helpful? Give feedback.
I did try on my side, when using API
player.setXHRWithCredentialsForType("MediaSegment",true)
I do see the "Cookie" header in the requests.Maybe a CORS issue ? Have you checked error messages on the console?