public static interface CameraStreamingManager.StreamingSessionListener
Called on an "arbitrary thread".
Modifier and Type | Method and Description |
---|---|
Camera.Size |
onPreviewSizeSelected(java.util.List<Camera.Size> list)
Invoked after camera object constructed.
|
boolean |
onRecordAudioFailedHandled(int code)
Invoked when audio recording failed.
|
boolean |
onRestartStreamingHandled(int code)
Restart streaming notification.
|
boolean onRecordAudioFailedHandled(int code)
code
- error code. Unspecified now.boolean onRestartStreamingHandled(int code)
When the network-connection is broken, CameraStreamingManager.STATE.DISCONNECTED
will notified first,
and then invoked this method if the environment of restart streaming is ready.
SDK won't limit the number of invocation.
code
- error code. Unspecified now.CameraStreamingManager.STATE.SHUTDOWN
will be notified.Camera.Size onPreviewSizeSelected(java.util.List<Camera.Size> list)
The supported list exists in following cases:
CameraStreamingSetting.setCameraPrvSizeRatio(com.pili.pldroid.streaming.CameraStreamingSetting.PREVIEW_SIZE_RATIO)
when
initialize CameraStreamingSetting
,
the whole supported list would be passedCameraStreamingSetting.setCameraPrvSizeRatio(com.pili.pldroid.streaming.CameraStreamingSetting.PREVIEW_SIZE_RATIO)
was set, the supported preview size which filtered by the specified ratio would be passedlist
- supported camera preview list which sorted from smallest to largest. The list maybe null.