Index: webrtc/sdk/android/api/org/webrtc/CameraSession.java |
diff --git a/webrtc/sdk/android/api/org/webrtc/CameraSession.java b/webrtc/sdk/android/api/org/webrtc/CameraSession.java |
index 7feb0462cef0dc75b8239da7b69b718bd77c7d6f..4c28b2d5d221db9996fcaf9f2e4d185827e7d270 100644 |
--- a/webrtc/sdk/android/api/org/webrtc/CameraSession.java |
+++ b/webrtc/sdk/android/api/org/webrtc/CameraSession.java |
@@ -11,10 +11,12 @@ |
package org.webrtc; |
public interface CameraSession { |
+ enum FailureType { ERROR, DISCONNECTED } |
+ |
// Callbacks are fired on the camera thread. |
public interface CreateSessionCallback { |
void onDone(CameraSession session); |
- void onFailure(String error); |
+ void onFailure(FailureType failureType, String error); |
} |
// Events are fired on the camera thread. |