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.