Make MediaFormatReader::GetMozDebugReaderData() machine parsable
Categories
(Core :: Audio/Video, enhancement, P2)
Tracking
()
People
(Reporter: tarek, Assigned: tarek)
References
Details
Attachments
(1 file)
Let's make the output machine parseable (my preference would be JSON) so the code using it is future-proof when we add some info there.
Marking as P2 based on being assigned. Please place in backlog if this is not something we're planning on working on in the next few releases.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
work in progress
Assignee | ||
Comment 3•5 years ago
|
||
consumer (besides media/dom/test/marionette)
https://github.com/mjfroman/media-devtools-panel-react
(with mjf as reviewer)
Assignee | ||
Comment 4•5 years ago
|
||
The current design makes it hard to build a clean and simple JSON output. As suggested by Paul I will redesign the patch from scratch by separating the data and the presentation.
This is what I propose:
- each RequestDebugInfo / GetDebugInfo method will return a specific structure containing the class debug information.
- I will add a dom/media/DebugInfo.[h|cpp] module that will group all the structures to have a single place to change
and overview them in the code base. - there will be a simple function in that module to generate a JSON object we can pass to the JS layer. That function will
use the structures it collected via GetDebugInfo() calls
Assignee | ||
Comment 5•5 years ago
|
||
unfortunately using JSONWriter is a bad idea because the string produced is not what we ultimately want to send via webidl.
I am refactoring the patch so all structures are webidl dictionaries instead of my MediaDebugInfo class.
This way we can pass it through JS without any trouble..
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
Assignee | ||
Comment 7•5 years ago
|
||
Pushed by tziade@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c386ebfd9c6b Make Media debug info machine parsable r=padenot,smaug
Comment 9•5 years ago
|
||
bugherder |
Assignee | ||
Comment 10•5 years ago
|
||
Backing out, see Bug 1549697
Comment 11•5 years ago
|
||
Backed out changeset c386ebfd9c6b (Bug 1542674) as per tarek's request on IRC
Updated•5 years ago
|
Comment 12•5 years ago
|
||
Backout by shindli@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/882bba44f789 Backed out changeset c386ebfd9c6b as per tarek's request on IRC
Comment 13•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Comment 14•5 years ago
|
||
Assignee | ||
Comment 15•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Comment 16•5 years ago
|
||
Pushed by tziade@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a064b18a1a57 Make Media debug info machine parsable r=padenot,smaug,jya
Comment 17•5 years ago
|
||
bugherder |
Comment 18•5 years ago
|
||
Shouldn't all the mozDumpDebugInfo() callers in tests get updated?
Assignee | ||
Comment 19•5 years ago
|
||
That's right, thanks for noticing and sorry for the miss. I added bug 1556637 to fix this issue.
Updated•5 years ago
|
Description
•