Support [Serializable] for EncodedVideoChunk
Categories
(Core :: Audio/Video: Web Codecs, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox117 | --- | fixed |
People
(Reporter: chunmin, Assigned: chunmin)
References
(Blocks 1 open bug)
Details
Attachments
(10 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
Bug 1838958 implements a basic EncodedVideoChunk without [Serializable]. [Serializable] will be implemented in this bug.
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
This patch add Serializable to EncodedVideoChunk interface with some
dummy functions to make it buildable. The (de-)serialization function
will be implemented in the following patches.
Depends on D182843
| Assignee | ||
Comment 2•2 years ago
|
||
EncodedVideoChunk serialization will take a reference to the data
stored in the chunk. Using MediaByteBuffer is a better choice for data
storage since it implies it can be shared.
Updated•2 years ago
|
| Assignee | ||
Comment 3•2 years ago
|
||
This patch addes a MediaAlignedByteBuffer class that is a ref-counted
AlignedByteBuffer. It will be used in the next patch.
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 4•2 years ago
|
||
This patch implements {Read, Write}StructuredClone for
EncodedVideoChunk in the custom fashion to achieve [Serializable] in
EncodeVideoChunk interface.
The data stored in EncodedVideoChunk will be share between the
serialization side and de-serialization side to avoid copy for
performance sake.
Depends on D182844
| Assignee | ||
Comment 5•2 years ago
|
||
Depends on D182954
| Assignee | ||
Comment 6•2 years ago
|
||
Updated•2 years ago
|
| Assignee | ||
Comment 7•2 years ago
|
||
This patch addes a same-origin check for EncodedVideoChunk
serialization. The check is done by comparing the worker's loading
principal with the global's one.
Depends on D183035
Updated•2 years ago
|
| Assignee | ||
Comment 8•2 years ago
|
||
This service worker will be reused for EncodedVideoChunk's WPT in
patches later, so the file name should remove the VideoFrame prefix.
Depends on D182955
| Assignee | ||
Comment 9•2 years ago
|
||
The service worker will no longer be used for VideoFrame only. In the
next patch, it will receive some messages from EncodedVideoChunk's WPTs
as well, so distinguishing messages for VideoFrame from others is
necessary.
Depends on D184133
| Assignee | ||
Comment 10•2 years ago
|
||
Depends on D183035
Comment 11•2 years ago
|
||
Comment 13•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c3d88665dcae
https://hg.mozilla.org/mozilla-central/rev/69b480c29c30
https://hg.mozilla.org/mozilla-central/rev/ad7f9efb9030
https://hg.mozilla.org/mozilla-central/rev/02c281ff169f
https://hg.mozilla.org/mozilla-central/rev/a8daccb99e00
https://hg.mozilla.org/mozilla-central/rev/6c009875a7be
https://hg.mozilla.org/mozilla-central/rev/17ace6afea6f
https://hg.mozilla.org/mozilla-central/rev/cc1f6a7cd4fe
https://hg.mozilla.org/mozilla-central/rev/a2573ef16190
https://hg.mozilla.org/mozilla-central/rev/0c46013a7260
Description
•