Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

114
Vistas
PIXI, The right way to stop a video

I have a need to temporarily stop a video so that it doesn't affect performance and restart it without having to reload it.

let vTexture = PIXI.Texture.from(`assets/video/tig.webm`);
let vSprite = new PIXI.Sprite(vTexture);
application.stage.addChild(vSprite);

vTexture.baseTexture.resource.source.play();

Before calling the play() function, the CPU load is ~0.5% after calling ~11% (it is large video).

vTexture.baseTexture.resource.source.pause();
application.stage.removeChild(vSprite);
vSprite.destroy();
application.destroy();

None of this reduces the load on the processor.

vTexture.baseTexture.resource.source.src = null;

This is works, but how to play again without reload video file.

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda