Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

VideoFrame.copyTo is manipulating JS objects in a background queue

Abierto
#955 8 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@Djuffin ya está trabajando en esto.

Desde el 6/10/2026.

  • #958 de @Djuffin — abierto

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
30/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
javascript
Área
api

Línea de trabajo

Start with the WebCodecs specification's VideoFrame.copyTo algorithm and trace where the JS-visible destination is written and where RGB conversion occurs. Compare the four proposed API or specification directions, then define a chosen approach whose completion criteria cover safe destination mutation and the desired handling of RGB conversion.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

CR Blocking PR exists TPAC2026

As per https://w3c.github.io/webcodecs/#dom-videoframe-copyto, destination which is a JS visible object is written from a background queue task, which is an anti-pattern.
This creates problems (JS observability, destination mutating during the copyTo tasks).

There are various ways to fix this, for instance:

  1. make copyTo algorithm synchronous
  2. Expose a new asynchronous API that would transfer the destination buffer and provide the returned value as part of the promise value.
  3. Extend copyTo API surface to implement 2 within it.
  4. Change the spec to write destination asynchronously but in an event loop task with additional checks, even if UA may do it in a smarter way.

As a side note, copyTo algorithm is also synchronously converting to RGB.
It would be convenient to do this asynchronously, which is feasible by cloning the VideoFrame synchronously and using the cloned VideoFrame in the remainder of the algorithm.

Lenguaje dominante
HTML
Estrellas
1.3k
Forks
191
Merge medio
21 h 7 min
PR fusionados (30 d)
8

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de w3c/webcodecs

Todos los issues de w3c/webcodecs

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.