Code example for SurfaceTexture

Methods: getTransformMatrix

0
 
	@SuppressLint("NewApi") 
	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 (true){ 
			play(mSeekPosition);
		} 
		Log.d(MainActivity.TAG_APP, "VIDEO " + mMovieName + " PRONTO PARA SER EXECUTADO");
		mSeekPosition = 0;
	}