|
3830 | 3830 | When invoked, run these steps: |
3831 | 3831 | 1. If {{platform object/[[Detached]]}} is `true`, throw an |
3832 | 3832 | {{InvalidStateError}} {{DOMException}}. |
3833 | | - 2. If {{VideoFrame/[[format]]}} is `null`, throw a {{NotSupportedError}} |
| 3833 | + 2. If {{VideoFrame/[[format]]}} is `null` and |options|.{{VideoFrameCopyToOptions/format}} does not [=map/exist=], throw a {{NotSupportedError}} |
3834 | 3834 | {{DOMException}}. |
3835 | 3835 | 3. Let |combinedLayout| be the result of running the [=Parse |
3836 | 3836 | VideoFrameCopyToOptions=] algorithm with |options|. |
|
3849 | 3849 | When invoked, run these steps: |
3850 | 3850 | 1. If {{platform object/[[Detached]]}} is `true`, return a promise rejected |
3851 | 3851 | with a {{InvalidStateError}} {{DOMException}}. |
3852 | | - 2. If {{VideoFrame/[[format]]}} is `null`, return a promise rejected with a |
| 3852 | + 2. If {{VideoFrame/[[format]]}} is `null` and |options|.{{VideoFrameCopyToOptions/format}} does not [=map/exist=], return a promise rejected with a |
3853 | 3853 | {{NotSupportedError}} {{DOMException}}. |
3854 | 3854 | 3. Let |combinedLayout| be the result of running the [=Parse |
3855 | 3855 | VideoFrameCopyToOptions=] algorithm with |options|. |
|
6258 | 6258 | conditions, such as allowing a site to mutate a codec input or output while |
6259 | 6259 | the underlying codec is still operating on that data. This concern is mitigated |
6260 | 6260 | by ensuring that input and output interfaces are immutable. |
| 6261 | +</div> |
6261 | 6262 |
|
6262 | 6263 | Privacy Considerations{#privacy-considerations} |
6263 | 6264 | =============================================== |
|
6305 | 6306 | budget", which depletes as authors use WebCodecs and other identifying APIs. |
6306 | 6307 | Upon exhaustion of the privacy budget, codec capabilities could be reduced to a |
6307 | 6308 | common baseline or prompt for user approval. |
| 6309 | +</div> |
6308 | 6310 |
|
6309 | 6311 | Best Practices for Authors Using WebCodecs{#best-practices-developers} |
6310 | 6312 | ====================================================================== |
|
0 commit comments