Skip to content

Commit c4d63d7

Browse files
Tyler GunnAndroid (Google) Code Review
authored andcommitted
Merge "Adding camera failure/ready session events." into lmp-dev
2 parents a351ab9 + 7edbe28 commit c4d63d7

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

api/current.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28902,6 +28902,8 @@ package android.telecomm {
2890228902
method public abstract void setPreviewSurface(android.view.Surface);
2890328903
method public abstract void setVideoCallListener(android.telecomm.InCallService.VideoCall.Listener);
2890428904
method public abstract void setZoom(float);
28905+
field public static final int SESSION_EVENT_CAMERA_FAILURE = 5; // 0x5
28906+
field public static final int SESSION_EVENT_CAMERA_READY = 6; // 0x6
2890528907
field public static final int SESSION_EVENT_RX_PAUSE = 1; // 0x1
2890628908
field public static final int SESSION_EVENT_RX_RESUME = 2; // 0x2
2890728909
field public static final int SESSION_EVENT_TX_START = 3; // 0x3

telecomm/java/android/telecomm/InCallService.java

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,24 @@ public static abstract class VideoCall {
207207
public static final int SESSION_EVENT_TX_START = 3;
208208

209209
/**
210-
* Video transmission has stopped. This occur after a negotiated stop of video transmission when
211-
* the underlying protocol has actually stopped transmitting video to the remote party.
210+
* Video transmission has stopped. This occurs after a negotiated stop of video transmission
211+
* when the underlying protocol has actually stopped transmitting video to the remote party.
212212
*/
213213
public static final int SESSION_EVENT_TX_STOP = 4;
214214

215+
/**
216+
* A camera failure has occurred for the selected camera. The In-Call UI can use this as a
217+
* cue to inform the user the camera is not available.
218+
*/
219+
public static final int SESSION_EVENT_CAMERA_FAILURE = 5;
220+
221+
/**
222+
* Issued after {@code SESSION_EVENT_CAMERA_FAILURE} when the camera is once again ready for
223+
* operation. The In-Call UI can use this as a cue to inform the user that the camera has
224+
* become available again.
225+
*/
226+
public static final int SESSION_EVENT_CAMERA_READY = 6;
227+
215228
/**
216229
* Session modify request was successful.
217230
*/
@@ -359,7 +372,9 @@ public abstract void onSessionModifyResponseReceived(int status,
359372
* Valid values are: {@link VideoCall#SESSION_EVENT_RX_PAUSE},
360373
* {@link VideoCall#SESSION_EVENT_RX_RESUME},
361374
* {@link VideoCall#SESSION_EVENT_TX_START},
362-
* {@link VideoCall#SESSION_EVENT_TX_STOP}
375+
* {@link VideoCall#SESSION_EVENT_TX_STOP},
376+
* {@link VideoCall#SESSION_EVENT_CAMERA_FAILURE},
377+
* {@link VideoCall#SESSION_EVENT_CAMERA_READY}
363378
*
364379
* @param event The event.
365380
*/

0 commit comments

Comments
 (0)