If you have any insights or suggestions, I would greatly appreciate your input. Thank you so much in advance for your time and support.
@madhuy1729 Thanks for reaching out to us. The headers can be passed in the stream request using the following options.
Option 1: Pass it as part of the source config
Reference documents:
var sourceConfig = {
.....
options: {
headers :{
}
withCredentials: true
},
};
Option 2: Using network.preprocessHttpRequest
var playerConfig = {
......
network: {
preprocessHttpRequest: (type, request) => {
if (type === bitmovin.player.HttpRequestType.MANIFEST_DASH) { //adjust the condition based on your requirements
request.headers["token"] = "value"
}
return Promise.resolve(request);
}
1 Like
Thank you, @Kishore . It worked!
1 Like
This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.