SpyDroid源码分析系列2:SessionBuilder之成员分析

位于net.majorkernelpanic.streaming文件夹下。

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   成员如下:

SpyDroid源码分析系列2:SessionBuilder之成员分析



下面开始分析各个成员如下:

public final static String TAG = "SessionBuilder";
//设置类的TAG,作为一个标志
//自定义检查点: 1 2 3


 public final static int VIDEO_NONE = 0;
 public final static int VIDEO_H264 = 1;
 public final static int VIDEO_H263 = 2;
//设置视频格式,0表示不涉及到视频,1表示采用H264格式 2表示采用H263的格式
//自定义检查点: 1 2 3


 public final static int AUDIO_NONE = 0;
 public final static int AUDIO_AMRNB = 3;
 public final static int AUDIO_AAC = 5;
//设置音频格式,0表示不涉及音频,3表示AMRNB格式的音频,5表示AAC格式的音频
//自定义检查点: 1 2 3

// Default configuration
private VideoQuality mVideoQuality = new VideoQuality();
private AudioQuality mAudioQuality = new AudioQuality();
//初始化两个变量,都为Quality


private Context mContext;
//设置一个Context句柄
private int mVideoEncoder = VIDEO_H263; 
//设置视频格式为H263
private int mAudioEncoder = AUDIO_AMRNB;
//设置音频格式为AMRNB

private int mCamera = CameraInfo.CAMERA_FACING_BACK;
//设置摄像头的方向
private int mTimeToLive = 64;
//设置TTL= 64
private boolean mFlash = false;
//设置mFlash为false
private SurfaceHolder mSurfaceHolder = null;
//设置surfaceholder为null
private InetAddress mOrigin = null;
//设置源为null
private InetAddress mDestination = null;
//设置目的为null
//自定义检查点: 1 2 3

// The SessionManager implements the singleton pattern
private static volatile SessionBuilder sInstance = null;
//设置sInstance为null
//自定义检查点: 1 2 3

//至此,19个变量分析完毕。

你可能感兴趣的:(SpyDroid,SessionBuilder)