How can I can i set a pause or at least a stop video to my video while playing? I came with this: (But does not work as intended).
this.buttonPlayIntro.once(‘pointerdown’, function (pointer) {
let video = this.add.video(game.scale.width /2, game.scale.height /2, 'introVideo').setScale(0.5);
video.play(true);
// Ajuda a deixar o video em foco para não crashar,
video.setPaused(false);
this.buttonStopIntro = this.add.image(game.scale.width -100, game.scale.height- 100, 'buttonPlayIntro').setInteractive({ useHandCursor: true });
this.buttonStopIntro.once('pointerdown', function (pointer) {
video.stop();
}, this);
}, this);