Example usage for android.graphics SurfaceTexture.OnFrameAvailableListener interface-usage

List of usage examples for android.graphics SurfaceTexture.OnFrameAvailableListener interface-usage

Introduction

In this page you can find the example usage for android.graphics SurfaceTexture.OnFrameAvailableListener interface-usage.

Usage

From source file demo.camera.library.ui.CameraCaptureActivity.java

/**
 * Shows the camera preview on screen while simultaneously recording it to a .mp4 file.
 * <p>
 * Every time we receive a frame from the camera, we need to:
 * <ul>
 * <li>Render the frame to the SurfaceView, on GLSurfaceView's renderer thread.

From source file com.aimfire.demo.CamcorderActivity.java

@SuppressWarnings("deprecation")
public class CamcorderActivity extends Activity
        implements SurfaceTexture.OnFrameAvailableListener, OnItemSelectedListener {
    private static final String TAG = "CamcorderActivity";
    private static final boolean VERBOSE = false;