I am using PIXI version 5. In my project, I need to play a video when user hits on preview. I could able to stop auto play but I could not able to start the video on clicking on preview.
I have used below line to off auto play
texture.baseTexture.resource.autoPlay = false;
Here is my code
this.appRenderer = new Application({
width: width,
height: height,
});
this.videoTexture = PIXI.Texture.from(video);
this.videoSprite = new PIXI.Sprite(this.videoTexture);
this.addChild(this.videoSprite);
there is no play function in texture.baseTexture.resource.source.