Open Bug 1710128 Opened 3 years ago Updated 3 years ago

Using EME without MSE

Categories

(Core :: Audio/Video: Playback, enhancement, P3)

Firefox 90
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: darin.dimitrov, Unassigned)

References

Details

User Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 14_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Mobile/15E148 Safari/604.1

Steps to reproduce:

I am trying to play an encrypted webm video by providing the ClearKey in the “encrypted” event. Unfortunately in Firefox this doesn’t appear to work - the encrypted event is never raised and an error is shown in the console.

Actual results:

The following error is shown in the console:

NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Encrypted content not supported outside of MSE

Expected results:

The video should play like it does in chromium based browsers

Jean-Yves, is this still your area within Mozilla? Is EME without MSE something Mozilla would be willing to support?

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

(In reply to joeyparrish from comment #1)

Jean-Yves, is this still your area within Mozilla? Is EME without MSE something Mozilla would be willing to support?

Hi Joey.

I no longer work at Mozilla.

Forwarding to the Media manager: :jimm

Flags: needinfo?(jmathies)

Bryce might be able to help here.

Flags: needinfo?(jmathies) → needinfo?(bvandyk)

Thanks for the report. Do you have a test case I could check against, to make sure I'm testing the same thing? Historically there's been some support for this in Gecko, but the paths have been disabled. I can take a look at the difficulty of supporting this.

Could you help me understand further what the use case for this is?

Flags: needinfo?(bvandyk) → needinfo?(darin.dimitrov)

As for repro, you can use the instructions here: https://github.com/google/shaka-player/issues/3366#issuecomment-834638299

The key ID and key in those instructions are obviously fake. The OP can provide the correct key ID and key if necessary, but we were able to make progress on the player side without them. I hope this helps!

You can test the non-MSE + EME path in Firefox by creating a pref with the name media.eme.mse-only and setting the value to the boolean false. I'd be interested to hear of the results.

I'm interested in testing this myself, so wouldn't mind if you're able to provide the key ID and key (you can email my bugzilla email if you don't want them to be public).

Here's a link to the video https://github.com/google/shaka-player/files/6439360/video_b_encrypted.webm.zip
And here are the keys:

player.configure('drm.clearKeys', {
'15A924B6EC3F485E69D500715D870B54': '0102030405060708090A0B0C0D0E0F10'
});

Here's a full example: https://github.com/google/shaka-player/issues/3366#issuecomment-834094149

Flags: needinfo?(darin.dimitrov)
Severity: -- → S4
Type: defect → enhancement
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.