Пример #1
0
 public RecordResponseManager(VideoRecorderActivitiy act, UserResponse _userResponse)
 {
     activity = act;
     ORIENTATIONS.Append((int)SurfaceOrientation.Rotation0, 90);
     ORIENTATIONS.Append((int)SurfaceOrientation.Rotation90, 0);
     ORIENTATIONS.Append((int)SurfaceOrientation.Rotation180, 270);
     ORIENTATIONS.Append((int)SurfaceOrientation.Rotation270, 180);
     userResponse = _userResponse;
     if (_userResponse == UserResponse.Video)
     {
         surfaceTextureListener = new MySurfaceTextureListener(this);
         stateListener          = new MyCameraStateCallback(act, this);
     }
     else if (_userResponse == UserResponse.Audio)
     {
         SetUpRecoder();
     }
 }
 public UserResponseLiveDescription(Context context)
 {
     mainContext = context;
     videoRecord = (VideoRecorderActivitiy)context;
 }
Пример #3
0
 public PreviewCaptureStateCallback(VideoRecorderActivitiy act, RecordResponseManager _manager)
 {
     activity = act;
     manager  = _manager;
 }
Пример #4
0
 public MyCameraStateCallback(VideoRecorderActivitiy act, RecordResponseManager _recordManager)
 {
     activity      = act;
     recordManager = _recordManager;
 }