Jump to content

How to play a responsive and fullscreen video


ltpitt
 Share

Recommended Posts

Probably you'll want to use fullScreenScaleMode SHOW_ALL instead of EXACT_FIT, to avoid stretching.

The video display itself needs to be scaled to fit the game canvas:

videoImage = video.addToWorld();

var videoScale = Math.min(game.width / video.width, game.height / video.height);

videoImage.scale.set(videoScale);

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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