Closed Bug 1074017 Opened 10 years ago Closed 6 years ago

[EME] Better debug facilities for GMP developers

Categories

(Core :: Audio/Video: Playback, defect)

x86_64
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: cpearce, Unassigned)

References

(Blocks 1 open bug)

Details

We should add debugging tools to make it easier for GMP developers.

* Ability to set a breakpoint when the GMP child process starts up, so that devs can connect debugger to the process before it starts executing code.
* More logging to diagnose MediaKeys creation/other failures. Just rejecting a promise is not very helpful. We can log these to the browser console.
Another idea: compare the GMP APIs that a GMP says is supports in its .info file with a whilelist which matches our GMP_API_* macros, and log a message to the Browser Console and to NSPR logs if a plugin reports that it supports an API that Gecko does not.
(In reply to Chris Pearce (:cpearce) from comment #1)
> Another idea: compare the GMP APIs that a GMP says is supports in its .info
> file with a whilelist which matches our GMP_API_* macros, and log a message
> to the Browser Console and to NSPR logs if a plugin reports that it supports
> an API that Gecko does not.

Spun this off into bug 1121154, as I think we need it for matching different plugin versions against different Gecko versions.
Very nice to have, but given Adobe are mostly done with developing their GMP a bit "too little, too late"... So unblocking.
Component: Audio/Video → Audio/Video: Playback
Mass closing do to inactivity.
Feel free to re-open if still needed.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.