Jump to content

Video playing only sound on Android devices


Poundmax
 Share

Recommended Posts

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

 

 

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

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...