28 lines
656 B
Java
28 lines
656 B
Java
package org.webrtc;
|
|
public interface CameraSession {
|
|
|
|
public interface CreateSessionCallback {
|
|
void onDone(CameraSession cameraSession);
|
|
|
|
void onFailure(FailureType failureType, String str);
|
|
}
|
|
|
|
public interface Events {
|
|
void onCameraClosed(CameraSession cameraSession);
|
|
|
|
void onCameraDisconnected(CameraSession cameraSession);
|
|
|
|
void onCameraError(CameraSession cameraSession, String str);
|
|
|
|
void onCameraOpening();
|
|
|
|
void onFrameCaptured(CameraSession cameraSession, VideoFrame videoFrame);
|
|
}
|
|
|
|
public enum FailureType {
|
|
ERROR,
|
|
DISCONNECTED
|
|
}
|
|
|
|
void stop();
|
|
}
|