What does browserSupportedMimes mean?
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Refactorización
- Claridad
- Necesita aclaración
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
Lee browserSupportedMimes en lib/models/audios.ts y lib/models/videos.ts; después, revisa el comportamiento medido en issue #45. Aclara si las listas describen tipos de archivo enrutados o tipos de reproducción esperados, y acuerden un solo nombre y una sola política para ambos handlers. Se considera terminado cuando el alcance y cualquier cambio de comportamiento se hayan decidido antes de la implementación.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
browserSupportedMimes in lib/models/audios.ts and lib/models/videos.ts reads as a claim about what a browser can decode. It is not one, and some of what it lists no engine claims:
| mime | canPlayType Chromium |
Firefox | listed in |
|---|---|---|---|
audio/vorbis |
no | no | audios |
audio/aacp |
no | maybe | audios |
video/mpeg |
no | no | videos |
video/x-flv |
no | no | videos |
video/quicktime |
no | maybe | videos |
Nothing is broken by that. The list decides which files the viewer offers to open; the handler then either plays the bytes or reports an error, and a media element reads the bytes rather than the declared type. #45 measured that end of it: one WAV served as audio/wav, audio/vnd.wave, audio/x-wav and application/octet-stream played in both engines, though canPlayType answers "no" for audio/vnd.wave.
So the question is what the list is meant to be, and the name should then say it:
- If it is what we route to the handler, then
handledMimesor similar is the honest name, and entries likeaudio/vorbisare harmless but pointless: vorbis is a codec insideaudio/ogg, not a container type a file carries. - If it is what we expect to play, then it needs trimming, and that is a behaviour change for anyone whose files carry those types today.
Worth deciding once for both handlers rather than per pull request.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2
- Forks
- 1
- Merge medio
- 19 h 47 min
- PR fusionados (30 d)
- 78
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nextcloud-libraries/nextcloud-viewer
-
type: tests
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
nextcloud-libraries/nextcloud-viewer#111 ·
Los mantenedores suelen responder en 1 día
-
type: enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
nextcloud-libraries/nextcloud-viewer#110 ·
Los mantenedores suelen responder en 1 día
-
type: enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
nextcloud-libraries/nextcloud-viewer#106 ·
Los mantenedores suelen responder en 1 día
-
type: enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
nextcloud-libraries/nextcloud-viewer#105 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
AI assisted status: triage type: enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 54/100
nextcloud-libraries/nextcloud-viewer#47 ·
Los mantenedores suelen responder en 1 día
Todos los issues de nextcloud-libraries/nextcloud-viewer
Issues similares
-
triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
🎙️ task - drop the raw `./node_modules/.bin/rhachet roles boot` line from bhuild's feedback templateAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
ehmpathy/rhachet-roles-bhuild#639 ·
Los mantenedores suelen responder en 1 día
-
e2e-failure ready-to-code
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
redhat-developer/rhdh-plugin-export-overlays#4650 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 13 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
omdsh-dev/DSH-better-sidebar#1098 ·
Los mantenedores suelen responder en 2 días