Skip to content

Chromecast receiver with custom header #8642

@fridapinto-debug

Description

@fridapinto-debug

Hello I have created the chromecast receiver correctly and I can cast dash , mp4 and hls videos correctly. I also implemented drm license request using licenserequesthandler.

I want to know how can I add custom headers to manifestrequest and segment request? I want to check specific headers for media to be streamed like custom User-Agent, adding extra header.

so far I have done:

playbackConfig.manifestRequestHandler = requestInfo => {
--
 // requestInfo.withCredentials = true;
  requestInfo.headers['User-Agent'] = 'Mozilla 6.0 firefox';
  
  
   };

but still the useragent is same when the chromecast calls the url.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions