libgdx / gdx-video

A libGDX cross platform video rendering extension
Apache License 2.0
145 stars 50 forks source link

video is flickering #82

Closed its-yuu closed 5 months ago

its-yuu commented 6 months ago

even i try to use 240p at 60 and 30 frames its still flickering in android phone. i tried 480p and 720p also.

i've followed the code given in gdx-video repository and here is my code in render

videoPlayer.update(); videoPlayerTexture = videoPlayer.getTexture(); if(videoPlayerTexture != null) batch.draw(videoPlayerTexture,0,0,Gdx.graphics.getWidth(), Gdx.graphics.getHeight();

thanks in advanced.

//edit somehow i run it smoothly but when i use Screen Interface 'setScreen()' its start flickering

its-yuu commented 5 months ago

i managed to find the bug in my code and fix it. its okay now.