Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: webrtc/sdk/android/api/org/webrtc/CameraSession.java

Issue 2642703002: Add failure type parameter to onFailure callback. (Closed)
Patch Set: Correctly handle failure type. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/sdk/android/api/org/webrtc/CameraCapturer.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « webrtc/sdk/android/api/org/webrtc/CameraCapturer.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698