videojs 헤더에 인증정보 추가하기

catch me if u can!·2021년 2월 9일
0

참조

https://videojs.com/
https://videojs.github.io/videojs-contrib-hls/

코드

videojs.Hls.xhr.beforeRequest = function(options) {
    options.header = { token:"token-string" };
  //options.uri = options.uri + "?token=token-string";
  return options;   
}

2021-05-11 videojs.Hls.xhr.beforeRequest 이벤트에서 options.uri 값에 파라미터를 추가한다.

profile
마쿠투소케 난쿠로나이사

0개의 댓글