Jump to content

IOS 8-9 inline video


ecsancho
 Share

Recommended Posts

Greetings

I'm new to Pixi and I was under the impression that ios 8-9 can play inline video with webgl render texture. However everything works in desktop but in ios it still opens up native fullscreen video player. Is there any css styles or settings I'm missing?

Thanks

Link to comment
Share on other sites

renderer = PIXI.autoDetectRenderer(1000, 1080,{ view:document.getElementById("canvasStage"), antialias:true});

var vElm = document.createElement("video");
vElm.preload = "auto";
vElm.loop = true;              
vElm.src = "test1.mp4";
vElm.setAttribute('webkit-playsinline', 'true');

var texture = PIXI.Texture.fromVideo(vv);
var videoSprite = new PIXI.Sprite(texture);
videoSprite.width =640;
videoSprite.height = 360;
stage.addChild(videoSprite);

vsource=texture.baseTexture.source;

$(window).on('touchstart click', function(){
	vsource.play();
});

Here's what I have, pretty simple. This works on desktop but when playing on ios 9.3 it opens the video in native player. I'm using pixi v4 .

Any ideas? Thanks

Link to comment
Share on other sites

  • 3 months later...

Hello,

Is there an official reason for this. I'm having the same problem, as well as others, regarding using video with PIXI.

With version 4.2.3, the problem persists. Also I'd like to know what's the official browser support for video in webgl, specially on devices (android and iOS), because I'm experiencing some issues with it. Mainly the video doesn't display on some of them. 

Thanks, Rodrigo.

Link to comment
Share on other sites

  • 2 weeks later...

Sorry to bring this back, but has anyone had any success using this polyfill or anything else to use videos as textures on devices?, on desktop there are no issues whatsoever, but on devices all hell breaks loose. There are also some issues in older versions of Android (prior to 4.4).

Thanks,

Rodrigo.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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