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

Firefox DASH DRM decoding fails under frequent seeking #228

Open
prestonbarnett opened this issue Jul 30, 2024 · 0 comments
Open

Firefox DASH DRM decoding fails under frequent seeking #228

prestonbarnett opened this issue Jul 30, 2024 · 0 comments

Comments

@prestonbarnett
Copy link

prestonbarnett commented Jul 30, 2024

I've been running into an issue with the video player crashing on Firefox while decoding DRM-enabled DASH segments. This behavior occurs when frequently seeking. The error can also be intermittently reproduced with the built-in seek bar as well. The problem does not occur on Chrome.

When the player fails, the following error is emitted from the player:

Media resource blob:https://www.nuevodevel.com/8e9b21cb-4839-44de-934b-67d21c8b5d27 could not be decoded.

Media resource blob:https://www.nuevodevel.com/8e9b21cb-4839-44de-934b-67d21c8b5d27 could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005)
Details: ipc::IPCResult mozilla::gmp::ChromiumCDMParent::RecvIncreaseShmemPoolSize(): Failled to ensure CDM has enough shmems.

Reproduction Steps:

  1. Visit DRM Demo: https://www.nuevodevel.com/nuevo/showcase/drm
  2. Paste the following into the console after playing the video to reproduce the frequent seeking crash
let video = document.querySelector('video');

if (video) {
  function increaseCurrentTime() {
    if (video.currentTime < video.duration) {
      video.currentTime += 0.1;
    } else {
      clearInterval(interval);
    }
  }

  let interval = setInterval(increaseCurrentTime, 20);
} else {
  console.log('No video element found on this page.');
}

System

Browser: Firefox 128
OS: MacOS 14.5 (23F79)

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