Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EmeHeaders not working #223

Open
lazarkocic1990 opened this issue Jun 12, 2024 · 0 comments
Open

EmeHeaders not working #223

lazarkocic1990 opened this issue Jun 12, 2024 · 0 comments

Comments

@lazarkocic1990
Copy link

I am using

"video.js": "^8.12.0" "videojs-contrib-eme": "^4.0.0"

I initialize video.js player, initialize eme and try to add headers, but they are not being sent.

`const videoElement = document.createElement("video-js");

  videoElement.classList.add("vjs-big-play-centered");
  (videoRef.current as any).appendChild(videoElement);

  const player = (playerRef.current = videojs(videoElement, options, () => {
    videojs.log("player is ready");
    onReady && onReady(player);
  }));

  (player as any).eme();
  
  player.src({
    src: "https://...playlist.m3u8",
    type: "application/x-mpegURL",
    emeHeaders: {
      Authorization: `Bearer=test`,
    },
  });`

Am I missing any step here, I also tried with different (older) versions of the libraries.

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

No branches or pull requests

1 participant