Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

125
Views
PIXI, la forma correcta de detener un video

Tengo la necesidad de detener temporalmente un video para que no afecte el rendimiento y reiniciarlo sin tener que volver a cargarlo.

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

Antes de llamar a la función play(), la carga de la CPU es ~0,5 % después de llamar ~11 % (es un video grande).

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

Nada de esto reduce la carga en el procesador.

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

Esto funciona, pero cómo volver a reproducir sin recargar el archivo de video.

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!