Open Bug 1950502 Opened 24 days ago Updated 11 days ago

AudioContext#createMediaElementSource breaks playback of DRM (EME) content

Categories

(Core :: Web Audio, defect, P3)

Firefox 135
Desktop
All
defect

Tracking

()

UNCONFIRMED

People

(Reporter: iyanello, Unassigned)

References

Details

User Agent: "Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0"
Build ID: 20181001000000

Steps to reproduce:

  • Take an EME-enabled audio tag (fmp4+flac, any CDM like widevine)
  • Call AudioContext#createMediaElementSource(audio)
  • No sound/playback

Actual results:

When calling createMediaElementSource on a DRM-protected audio element (using EME), Firefox silently breaks playback. This results in no sound output and no progress of the media file, preventing the use of additional audio processing nodes like GainNode.

Expected results:

Similar to Chrome, calling createMediaElementSource on a DRM-protected audio element should return a valid MediaElementSourceAudioNode instance, allowing for further manipulation using Web Audio API features and correct playback.

OS: Unspecified → All
Hardware: Unspecified → Desktop

We have successfully reproduced this issue on both Linux and macOS operating systems. So if you need a test demo to reproduce the issue, I can provide a GitHub repository with sample files and demo code. Please let me know if this would be useful.

Changes for Bug 1331763 intended to provide the so-called DRM-protected audio in an unprotected manner to Web Audio in Firefox 55, but the test merely checked that createMediaElementSource() does not throw.

It would be good to know whether any previous versions of Firefox would unprotect the audio as intended.

https://mozilla.github.io/mozregression/ can be helpful with that and can help identify when and why the behavior changed, if it has.

See Also: → 1331763
Severity: -- → S4
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.