Expose function on MediaSource to dump all trackbuffers to disk

NEW
Unassigned

Status

()

P3
normal
4 years ago
3 years ago

People

(Reporter: cpearce, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

It's handy for debugging to expose a function on the MediaSource object to write the buffered data to disk.
(Reporter)

Comment 1

4 years ago
Posted patch WIP PatchSplinter Review
You can use this from the web console, with:

document.getElementsByTagName("video")[0].mozMediaSourceObject.dump("/path/to/dump");

Not a good idea to ship this in its current state, WebIDL attributes should be [ChromeOnly] at least (they're not accessible from the WebConsole if they are, so I had to make MediaSource.dump() not [ChromeOnly].

Updated

4 years ago
Priority: -- → P3
Component: Audio/Video → Audio/Video: Playback
You need to log in before you can comment on or make changes to this bug.