AdvancedVideo componet issue in Chrome Browser on mobile web
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- next.js, react, typescript
- Área
- frontend, performance, web-dev
Línea de trabajo
Comienza con el uso de AdvancedVideo mostrado en el issue y verifica el comportamiento con las versiones más recientes de @cloudinary/react y @cloudinary/url-gen en una aplicación mínima de Next.js. Prueba el ejemplo proporcionado con vídeos grandes en Chrome y Safari móviles; se considera terminado cuando el fallo de carga es reproducible y una resolución verificada consigue que los vídeos afectados se carguen y reproduzcan.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug report for Cloudinary React SDK
Before proceeding, please update to latest version and test if the issue persists
Describe the bug in a sentence or two.
Using Cloudinary React SDK in a mobile web app (using Next.js) to play large videos. Users have reported that when using Google Chrome Browser on their phones, some videos take a long time to load, while others load indefinitely. This behavior sometimes occurs in Safari on mobile, too, but is primarily noticeable in Chrome on mobile. This issue does not seem to appear on Chrome on desktop. Also, there is no noticeable pattern as to which videos load or don't load. Have checked the Error Logs on the Cloudinary dashboard and there are no related errors.
Describe the desired/expected behavior.
All videos load and play.
Link to reproduction of the issue on codepen/jsfiddle/etc.
import { AdvancedVideo } from "@cloudinary/react";
import { Cloudinary } from "@cloudinary/url-gen";
import { format, quality } from "@cloudinary/url-gen/actions/delivery";
import { scale } from "@cloudinary/url-gen/actions/resize";
import { streamingProfile } from "@cloudinary/url-gen/actions/transcode";
import { auto } from "@cloudinary/url-gen/qualifiers/quality";
interface IVideoPlayerProps {
publicId?: string;
id?: string;
handleOnPlay?: () => void;
handleOnEnded?: () => void;
handleOnPause?: () => void;
}
export const VideoPlayer: React.FC<IVideoPlayerProps> = (props: IVideoPlayerProps) => {
const { publicId, id, handleOnPlay, handleOnEnded, handleOnPause } = props;
if (!publicId) {
return null;
}
const cld = new Cloudinary({
cloud: {
cloudName: "ID"
}
});
const myVideo = cld.video(publicId).resize(scale());
return (
<div style={{ width: "90vw", height: "70vh", overflow: "hidden" }}>
<AdvancedVideo
id={id}
cldVid={myVideo}
controls
autoPlay
style={{ width: "100%", height: "100%" }}
onPlay={handleOnPlay}
onPause={handleOnPause}
onEnded={handleOnEnded}
/>
</div>
);
};
Issue Type (Can be multiple)
[ ] Build - Can’t install or import the SDK
[ ] Babel - Babel errors or cross browser issues
[x] UI/Performance - Display or performance issues
[ ] Behaviour - Functions aren’t working as expected (Such as generate URL)
[ ] Documentation - Inconsistency between the docs and behaviour
[ ] Incorrect Types - For typescript users who are having problems with our d.ts files
[ ] Other (Specify)
Steps to reproduce
It is unfortunately difficult to repro because the infinite loading is so inconsistent.
Error screenshots
… if applicable
Browsers (if issue relates to UI, else ignore)
[x] Chrome
[ ] Firefox
[x] Safari
[ ] Other (Specify)
[ ] All
Versions and Libraries (fill in the version numbers)
Cloudinary-core - 0.0.0
Cloudinary-react - ^1.13.0
React - ^18
Create-React-App - N/A
Babel - 0.0.0
Webpack/Rollup/Other - 0.0.0
Node - ^20
NPM - 0.0.0
Config Files (Please paste the following files if possible)
Package.json
{
"name": "atlas-web",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"format": "prettier --write ."
},
"dependencies": {
"@amplitude/analytics-browser": "^2.5.2",
"@apollo/client": "^3.9.5",
"@auth0/auth0-react": "^2.2.4",
"@cloudinary/react": "^1.13.0",
"@cloudinary/url-gen": "^1.16.1",
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.15.10",
"@mui/material": "^5.15.10",
"@sentry/nextjs": "^7.104.0",
"graphql": "^16.8.1",
"next": "14.1.0",
"prettier": "^3.2.5",
"react": "^18",
"react-dom": "^18",
"styled-components": "^6.1.8"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.1.0",
"typescript": "^5"
}
}
Webpack.config (if applicable)
Babelrc
Repository
If possible, please provide a link to a reproducible repository that showcases the problem
- Lenguaje dominante
- JavaScript
- Estrellas
- 501
- Forks
- 211
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin 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 cloudinary/cloudinary-react
-
In typescript in react appQuizá libre de nuevo @jroco-cloudinary la tomó hace 1266 días y no hay ningún pull request abierto. Abiertohelp wanted
cloudinary/cloudinary-react#253 · 3 comentarios · 1 asignado ·
-
Support for token based authentication?Quizá libre de nuevo @patrick-tolosa la tomó hace 1774 días y no hay ningún pull request abierto. Abiertobug
cloudinary/cloudinary-react#242 · 3 comentarios · 1 asignado ·
Todos los issues de cloudinary/cloudinary-react
Issues similares
-
documentation good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
-
accessibility area: css area: web ui bug difficulty: easy frontend good first issue help wanted javascript journey: first-visit journey: mobile priority: P3 quality tech: css tech: html typescript ui user-experience
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
themactep/thingino-firmware#2018 ·
Los mantenedores suelen responder en 1 día
-
[analytics-core] getQueryParams does not decode `+` as space and truncates values containing `=`Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
amplitude/Amplitude-TypeScript#2179 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
cloudinary/js-url-gen#608 ·