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

115
Views
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
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!