Log in or register to post comments

video playback sample on V3.0.5

July 7, 2014 - 11:06pm #1

I am changing how the android video playback sample works and in general I am doing something like this:

instead of loading all the videos at the beggining of the SDK initialaztion, I am loading videos after a marker is found... everything seems fine and the correct video loads but I have no idea why the video does not show but the sound plays and on the frame where I should see the video, it's all black! double touch goes to fullscreen and the video plays fine but on texture, the video is all black! when I switch back to load videos in the SDK initialaztion, video is shown ok!


any idea what could have gone wrong?


video playback sample on V3.0.5

July 8, 2014 - 12:30am #2

problem solved!


on this function:

public void onSurfaceCreated(GL10 gl, EGLConfig config) 

we must do this check:

if (!_playerHelper[i].setupSurfaceTexture(videoPlaybackTextureID[i]))
                    _canRequestType[i] = MEDIA_TYPE.FULLSCREEN;
                    _canRequestType[i] = MEDIA_TYPE.ON_TEXTURE_FULLSCREEN;


and we only should do this check once here... the problem was that I was doing this test on every frame rendering... :) all good now anyhow.

Log in or register to post comments