Videos not playing on android tables

Hi

I have this lines of code:

layer.video = native.newVideo( display.contentCenterX, display.contentCenterY,display.contentWidth, display.contentHeight)        layer.video:toFront();        layer.video.oriX = layer.video.x; layer.video.oriY = layer.video.y        layer.video.oriXs = layer.video.xScale; layer.video.oriYs = layer.video.yScale        layer.video.alpha = 1; layer.video.oldAlpha = 1        layer.video:load( composer.videoDir..videoname, system.ResourceDirectory)        layer.video:addEventListener( "video", videoListener )        layer.video:play()        layer.video.name = "video"        sceneGroup:insert( layer.video); sceneGroup.video = layer.video

But

on iOS -> works

on Samsung S2 Phone -works

only on my tablet the videos are not playing…I have no idea why…

And the other problem is that the videos on android are not centered.

They are always on the left side of the screen.

Can anyone help me?

What format is the video?  What type of tablet?  Does it support that video type?    There could be codec issues depending on the variant of Android you’re running (assuming its an Android tablet).

Rob

The format is .mp4. And the tablet supports the type. I can see the video but it is not playing. If I tap on the back button of my tablet and cancel the action the video starts to play. Any ideas?

Hi Rob

Have you an idea?

And can you tell me why the videos on android are always on the left and not centered as expected?

Thx

Have you tried:

layer.video.x = display.contentCenterX

layer.video.y = display.contentCenterY

???

Yes. It is not working always on the left on android. iOS works fine

Can you put together a small project that demonstrates this issue.  It needs to have the build.settings you are using and your config.lua.  Please put the project with all the assets needed to run in a .zip file (no .rar or .bz2 files).  Then use the link at the top of the page (Report a Bug) and file a bug report.

You will get an email from the bug system that will have your bug ID.  Please post that bug ID back to this thread for a reference.

Rob

What format is the video?  What type of tablet?  Does it support that video type?    There could be codec issues depending on the variant of Android you’re running (assuming its an Android tablet).

Rob

The format is .mp4. And the tablet supports the type. I can see the video but it is not playing. If I tap on the back button of my tablet and cancel the action the video starts to play. Any ideas?

Hi Rob

Have you an idea?

And can you tell me why the videos on android are always on the left and not centered as expected?

Thx

Have you tried:

layer.video.x = display.contentCenterX

layer.video.y = display.contentCenterY

???

Yes. It is not working always on the left on android. iOS works fine

Can you put together a small project that demonstrates this issue.  It needs to have the build.settings you are using and your config.lua.  Please put the project with all the assets needed to run in a .zip file (no .rar or .bz2 files).  Then use the link at the top of the page (Report a Bug) and file a bug report.

You will get an email from the bug system that will have your bug ID.  Please post that bug ID back to this thread for a reference.

Rob