Jump to content

ios12 video only playing audio


ptotheaul
 Share

Recommended Posts

I just noticed that in ios12 when a video is opened in the native player from an ios phone device only the audio plays.  I play the video inline on ipads:

this.video = this.game.add.video('introvideo');
this.vidsprite = this.video.addToWorld(0, 0, 0, 0, 1, 1);

and this code would just open the native player on phones.  The video plays fine on older ios versions, ipad inline on io12 and older versions, and the video plays fine in the native player if you just open it from a direct link from the browser.

Any ideas why I would only be getting audio from the native player when launched from phaser but the video plays fine in the native player when opened directly?

Link to comment
Share on other sites

I figured out that if I remove the .addToWorld from above the video plays however now the issue is that without the video added to the world my onComplete handler doesn't fire.  Anyone have any insight into this issue?

 

this.video = this.game.add.video('introvideo');  
this.vidsprite = this.video.addToWorld(0, 0, 0, 0, 1, 1);

this.video.onComplete.add(function(obj){
                    console.log("video over");
                           
                 }, this);

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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