Poundmax Posted June 12, 2015 Share Posted June 12, 2015 Hi all, I'm new to the forum (as an active poster that is), and I'm having a problem with Video in Pixi v2.2.3 so I thought I'd give it a shot here. I'm trying to play a video using a VideoTexture with a Sprite like this:// add video'svar videoTex = VideoTexture.fromUrl(url);var videoSprite = new Sprite(videoTex);addChild(video1Sprite);The video play's fine in every browser on dekstop and on Chrome and Safari on our iPad 4 (haven't tested any other iPads). The video is a mp4 with H.264 codec. When I try to view the video on a Nexus 9 I get the following error when using the WebGLrenderer: '[.WebGLRenderingContext-0x55b66f64a0]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.' And when using the CanvasRenderer the video plays fine, apart from the fact that I don't see any image, I hear only the audio. I've tried different formats (WebM) and different sizes, but I can't seem to get the video to show on android devices. Any help is greatly appriciated, since I'm not really sure where to look next. Thanks in advance, Maarten Quote Link to comment Share on other sites More sharing options...
xerver Posted June 12, 2015 Share Posted June 12, 2015 Sounds like that browser doesn't support video texture sources in WebGL. Quote Link to comment Share on other sites More sharing options...
Poundmax Posted June 13, 2015 Author Share Posted June 13, 2015 Sounds like that browser doesn't support video texture sources in WebGL. It does sound like that, however I've tried it in Google on a fairly new tablet, so I thought it might support it. I'm curious as to why I don't see the video when using the CanvasRenderer instead of WebGL. Since it seems te be running fine then, but I just hear the audio. Quote Link to comment Share on other sites More sharing options...
xerver Posted June 13, 2015 Share Posted June 13, 2015 It does sound like that, however I've tried it in Google on a fairly new tablet, so I thought it might support it. I'm curious as to why I don't see the video when using the CanvasRenderer instead of WebGL. Since it seems te be running fine then, but I just hear the audio. You hear the audio because the video is placed in an HTML5 video element and played, so that is where the sound comes from. As to why it isn't rendering, without debugging it myself there isn't a way to know. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.