Jump to content

How to do video correctly HTML5? Change Source?


jjwallace
 Share

Recommended Posts

Hi i am using Phaser to make a video flipbook.

 

I load my videos in my preloader like this.

this.load.video('myVideo1', 'assets/video/video1.mp4');this.load.video('myVideo2', 'assets/video/video2.mp4');
 
I add my video to my game like this:
this.video = this.add.video('myVideo1');
 
I want to use the change source like this;
this.video = this.add.video('myVideo' + curScene.toString);
 
I am using the last part wrong... But i wana use my preloaded video :(
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...