amazon-ivs-player-web-sample
amazon-ivs-player-web-sample copied to clipboard
Possibility to intercept request
Is there a possibility to intercept request in Amazon IVS player? For example videojs allows before request:
videojs.Hls.xhr.beforeRequest = function(options) {
/*
* Modifications to requests that will affect every player.
*/
return options;
};
Using IVS player with videojs the beforeRequest is never called as i expect IVS player makes requests separate of videojs.
Use case would be adding cloudfront signed url params in order to get private VOD.
Hey @Carel155, the setRequestCredentials
API introduced with v1.4.0 may solve your use case: https://aws.github.io/amazon-ivs-player-docs/1.4.0/web/interfaces/player.html#setrequestcredentials
Hey, thanks for the quick response. Yeah, the setRequestCredentials would probably solve the problem in web (even though it would be much more complicated as it should be). But there is no solutions for android and iOS packages as i understand correctly?