public interface VideoController
VideoController
object is only valid while the SinchClient
is started. As soon as the
SinchClient
is stopped, this object is invalidated and must not be
used.Modifier and Type | Method and Description |
---|---|
int |
getCaptureDevicePosition() |
android.view.View |
getLocalView() |
android.view.View |
getRemoteView() |
void |
setCaptureDevicePosition(int facing)
Sets the camera to use for capturing video
|
void |
setLocalVideoFrameListener(LocalVideoFrameListener listener)
Sets a listener for the local video frames.
|
void |
setLocalVideoZOrder(boolean onTopOfRemoteView)
Sets whether local video (preview from camera) should be rendered on top of remove video view (default behaviour) or vice versa in case views are overlapping.
|
void |
setRemoteVideoFrameListener(RemoteVideoFrameListener listener)
Sets a listener for the remote video frames.
|
void |
setResizeBehaviour(VideoScalingType type)
Controls how the remote view will resize to fit the view.
|
void |
setTorchMode(boolean enabled)
Enables/disables flash torch mode during current video session.
|
void |
toggleCaptureDevicePosition()
Toggles the capture device position.
|
android.view.View getLocalView()
android.view.View getRemoteView()
void setResizeBehaviour(VideoScalingType type)
VideoScalingType.ASPECT_FIT
.type
- The scaling typejava.lang.IllegalArgumentException
- if type is invalid.VideoScalingType for possible values.
void setCaptureDevicePosition(int facing)
facing
- one of Camera.CameraInfo.CAMERA_FACING_FRONT or
Camera.CameraInfo.CAMERA_FACING_BACKjava.lang.IllegalArgumentException
- if facing is invalid.int getCaptureDevicePosition()
void toggleCaptureDevicePosition()
void setRemoteVideoFrameListener(RemoteVideoFrameListener listener)
VideoUtils
for I420 into NV21 conversion.
See RemoteVideoFrameListener
for more information.
listener
- will be called on each frame from the remote video stream.void setLocalVideoFrameListener(LocalVideoFrameListener listener)
LocalVideoFrameListener
is called, and processed frame should be returned via ProcessedVideoFrameListener
interface.listener
- will be called on each frame captured from camera.
See LocalVideoFrameListener
and ProcessedVideoFrameListener
for more information.void setLocalVideoZOrder(boolean onTopOfRemoteView)
onTopOfRemoteView
- if set to false will make remove video rendered on top of preview.void setTorchMode(boolean enabled)
enabled
- sets flash torch mode ON if true.Copyright 2016, Sinch AB