You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Device.Video class needs to be able to detect 'mov' as an extension
The Device.Video class should check for HEVC Alpha support
mov files with an alpha channel don't render the alpha channel under v3.86 on iOS or macOS
mov files do play on Windows, but without the alpha channel (as is expected), if you override the Device mov check
Pixi 8 can play mov with alpha on iOS and doesn't appear to do anything to specifically handle this. Potentially a WebGL2 benefit? PMA? Texture update setting? See my playground here: https://www.pixiplayground.com/#/edit/WEZPQhZKnoL8aC65LFH7V
I have uploaded 2 video files that have no CORS issues here:
Code sample to test locally and against BrowserStack:
classExampleextendsPhaser.Scene{constructor(){super();}preload(){this.game.device.video.mov=true;// this.load.video('dog', 'https://www.fatal-design.com/dog.mov');this.load.video('dog','https://www.fatal-design.com/dog.webm');this.load.image('bg','https://cdn.phaserfiles.com/v385/assets/skies/space3.png');}// HEVC with alpha is supported ONLY on Safari >=13 / ios >=13// previous versions also supported HEVC but WITHOUT alpha channel (video will play with black bg)// Safari 13 is the first version to support mediaCapabilitiessupportsHEVCAlpha(){constnavigator=window.navigator;constua=navigator.userAgent.toLowerCase()consthasMediaCapabilities=!!(navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo)constisSafari=((ua.indexOf('safari')!=-1)&&(!(ua.indexOf('chrome')!=-1)&&(ua.indexOf('version/')!=-1)))returnisSafari&&hasMediaCapabilities}create(){this.add.image(400,300,'bg');this.add.text(10,10,'Click for mov: '+this.supportsHEVCAlpha(),{font: '16px Courier',fill: '#00ff00'});this.input.once('pointerdown',()=>{this.add.video(512,300,'dog').play(true);});}}constconfig={type: Phaser.AUTO,width: 1024,height: 600,backgroundColor: '#000000',scene: Example};letgame=newPhaser.Game(config);
The text was updated successfully, but these errors were encountered:
This is a multi-part issue:
I have uploaded 2 video files that have no CORS issues here:
https://www.fatal-design.com/dog.webm
https://www.fatal-design.com/dog.mov
Code sample to test locally and against BrowserStack:
The text was updated successfully, but these errors were encountered: