Code example for SurfaceTexture

Methods: getTransformMatrix

0
 
    public void getSurfaceTextureTransformMatrix(float []mtx)
    { 
        mSurfaceTextureLock.lock();
            if (mSurfaceTexture != null)
                mSurfaceTexture.getTransformMatrix(mtx);
        mSurfaceTextureLock.unlock();
    } 
 
    /** This is called when the movie is ready for playback */ 
    public void onPrepared(MediaPlayer mediaplayer)
    { 
        mCurrentState = MEDIA_STATE.READY;
 
        // If requested an immediate play 
        if (mShouldPlayImmediately)
            play(false, mSeekPosition);
 
        mSeekPosition = 0;
    }