Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Player doesn't send cookies in fragments #239

Open
MarcelloFincons opened this issue Sep 19, 2018 · 1 comment
Open

Player doesn't send cookies in fragments #239

MarcelloFincons opened this issue Sep 19, 2018 · 1 comment

Comments

@MarcelloFincons
Copy link

Hi, i need to stream a Manifest URL file (no DRM protected) that respond with cookies that the player needs to send in each fragment called after.
My code is very simple:

var stream = {
    url: "Manifest URL"
};
var mediaPlayer = new MediaPlayer();
mediaPlayer.init(document.querySelector("#videoPlayer"));
mediaPlayer.load(stream);

The problem is that each called fragment responds with error 403, i tried with fiddler blocking request and resent them with cookie and it works!
How can i send the cookies received in each fragment?

@bbert
Copy link

bbert commented Sep 21, 2018

Hi,
Indeed, the XHR for manifest and segments are not configured to use credentials.
As in dash.js, we could add the possibility to use credentials for these requests.
By the way, have you tried using dash.js project instead of hasplayer.js? We now recommend using dash.js with mss package.

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

No branches or pull requests

2 participants