public static final class CameraStreamingManager.STATE
extends java.lang.Object
CameraStreamingManager
.Modifier and Type | Field and Description |
---|---|
static int |
AUDIO_RECORDING_FAIL
AudioRecord#startRecording() failed. |
static int |
CAMERA_SWITCHED
Notify the camera switched.
|
static int |
CONNECTING
Being connecting.
|
static int |
CONNECTION_TIMEOUT
Deprecated.
|
static int |
DISCONNECTED
The network connection has been broken.
|
static int |
INVALID_STREAMING_URL
Invalid streaming url.
|
static int |
IOERROR
Connect error.
|
static int |
NETBLOCKING
Deprecated.
|
static int |
NO_NV21_PREVIEW_FORMAT
Do not support NV21 preview format.
|
static int |
NO_SUPPORTED_PREVIEW_SIZE
if the device hasn't the supported preview size, then it will select the default preview
size which mismatch the specified
CameraStreamingSetting.PREVIEW_SIZE_RATIO . |
static int |
OPEN_CAMERA_FAIL
camera open failed.
|
static int |
PREPARING
Preparing the environment for network connection.
|
static int |
READY
CameraStreamingManager.resume() done in pure audio streaming
CameraStreamingManager.resume() done and camera be activated in AV streaming.
|
static int |
SENDING_BUFFER_EMPTY
Sending buffer is empty.
|
static int |
SENDING_BUFFER_FULL
Sending buffer have been full.
|
static int |
SENDING_BUFFER_HAS_FEW_ITEMS
Sending buffer have few items witch waiting to be sent.
|
static int |
SENDING_BUFFER_HAS_MANY_ITEMS
Sending buffer have many items witch waiting to be sent.
|
static int |
SHUTDOWN
Streaming has been finished, and you can
CameraStreamingManager.startStreaming() again. |
static int |
STREAMING
The av datas start sending successfully.
|
static int |
TORCH_INFO
Notify the torch info after camera be active.
|
static int |
UNAUTHORIZED_STREAMING_URL
Invalid streaming url.
|
static int |
UNKNOWN
The initial state.
|
Constructor and Description |
---|
STATE() |
public static final int UNKNOWN
public static final int PREPARING
The first state after calling CameraStreamingManager.startStreaming()
public static final int READY
CameraStreamingManager.resume()
done in pure audio streamingCameraStreamingManager.resume()
done and camera be activated in AV streaming.public static final int CONNECTING
public static final int STREAMING
public static final int SHUTDOWN
CameraStreamingManager.startStreaming()
again.public static final int IOERROR
@Deprecated public static final int NETBLOCKING
public static final int CAMERA_SWITCHED
extra will including the info the new camera id.
Log.i(TAG, "current camera id:" + (Integer)extra);
public static final int TORCH_INFO
extra will including the info if the device support the Torch.
final boolean isSupportedTorch = (Boolean) extra;
@Deprecated public static final int CONNECTION_TIMEOUT
public static final int SENDING_BUFFER_EMPTY
public static final int SENDING_BUFFER_FULL
public static final int SENDING_BUFFER_HAS_FEW_ITEMS
public static final int SENDING_BUFFER_HAS_MANY_ITEMS
public static final int DISCONNECTED
public static final int NO_SUPPORTED_PREVIEW_SIZE
CameraStreamingSetting.PREVIEW_SIZE_RATIO
.public static final int AUDIO_RECORDING_FAIL
AudioRecord#startRecording()
failed.public static final int OPEN_CAMERA_FAIL
public static final int NO_NV21_PREVIEW_FORMAT
public static final int INVALID_STREAMING_URL
CameraStreamingManager.setStreamingProfile(StreamingProfile)
if streaming
url is invalid. Also gets the url as the extra info.public static final int UNAUTHORIZED_STREAMING_URL
CameraStreamingManager.setStreamingProfile(StreamingProfile)
if streaming
url is invalid. Also gets the url as the extra info.