FileDocCategorySizeDatePackage
VideoDumpActivity.javaAPI DocAndroid 5.1 API2440Thu Mar 12 22:22:30 GMT 2015com.android.mediadump

VideoDumpActivity

public class VideoDumpActivity extends android.app.Activity
A media tool to play a video and dump the screen display into raw RGB files. Check VideoDumpView for tech details.

Fields Summary
private android.content.Context
context
private android.view.View
mainView
private VideoDumpView
mVideoView
Constructors Summary
Methods Summary
private android.view.ViewcreateView()

        mVideoView = new VideoDumpView(this);
        mVideoView.setMediaController(new MediaController(context));

        LinearLayout mainLayout = new LinearLayout(this);
        mainLayout.addView(mVideoView, new LinearLayout.LayoutParams(
            LinearLayout.LayoutParams.MATCH_PARENT,
            LinearLayout.LayoutParams.MATCH_PARENT));

        return mainLayout;
    
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);

        context = this;

        mainView = createView();
        setContentView(mainView);
    
protected voidonPause()

        super.onPause();
        mVideoView.onPause();
    
protected voidonResume()

        super.onResume();
        mVideoView.onResume();
    
protected voidonStop()

        if (mVideoView != null) {
            if (mVideoView.isPlaying()) {
                mVideoView.stopPlayback();
            }
        }
        super.onStop();