public class

SCVideoCallController

extends SCBaseController<T extends IViewHolder>
implements IVideoCallController IVideoMaster
java.lang.Object
   ↳ com.c2call.sdk.pub.gui.core.controller.SCBaseController<T extends com.c2call.sdk.pub.gui.core.controller.IViewHolder>
     ↳ com.c2call.sdk.pub.gui.videocall.controller.SCVideoCallController

Summary

Nested Classes
class SCVideoCallController.PreviewTouchListener  
Public Constructors
SCVideoCallController(View view, SCViewDescription viewDescription)
Public Methods
void enableFaceDetection(boolean enable)
boolean enablePreviewAnimation()
If this method returns true, then your own video preview will be large and centered until the far end video stream is received.
IVideoSlave getVideoSlave()
Gets the VideoSlave
boolean isFaceDetectionEnabled()
boolean onBackPressed()
Notify the controller that the back button was pressed
void onButtonFillSrceenClicked(View v)
Callde when the fill screen Button was clicked
void onButtonHangupClicked(View v)
Called when the hangup Button was clicked
void onButtonHideClicked(View v)
Called when the hide Button was clicked
void onButtonMicClicked(View v)
Called when the microphone button was clicked
void onButtonRotatePreviewClicked(View v)
Called when the rotate preview button was clicked
void onButtonSpeakerClicked(View v)
Called when the speaker button was clicked
synchronized void onButtonToggleCamClicked(View v)
Called when the toggle camera Button was clicked
boolean onConfigurationChanged(Configuration newConfig)
Notifies the controller about configuration changes.
void onConnectionQuality(int quality)
void onCreate(Activity context, SCActivityResultDispatcher resultDispatcher)
This should be called when your Activity is created.
void onDestroy()
Notifies the controller that tha surrounding activity will be destroyed.
void onPause()
Notifies the controller that tha surrounding activity has paused
void onResume()
Notifies the controller that tha surrounding activity is resumed.
void onStart()
Notifies the controller that tha surrounding activity has started.
void onStartVideo()
void onStop()
Notifies the controller that tha surrounding activity has stopped.
void onSurfaceVideoClicked(View v)
Called when the video surface was clicked
void onUpdateVideoSlots(ArrayList<SCVideoCallRegion> regions)
void onVideoPreStop()
void onVideoStopped()
void onVideoStreamAdded(long ssrc)
void resetFixedPosition()
void setVideoSlave(IVideoSlave videoSlave)
Sets the VideoSlave
void showControls(boolean show)
void startVideo()
Starts the video
void toggleOverlays()
Protected Methods
void onBindButtonFillScreen(IVideoCallViewHolder vh)
void onBindButtonHangup(IVideoCallViewHolder vh)
void onBindButtonMic(IVideoCallViewHolder vh)
void onBindButtonRotatePreview(IVideoCallViewHolder vh)
void onBindButtonSpeaker(IVideoCallViewHolder vh)
void onBindPreviewOverlay(IVideoCallViewHolder vh)
void onBindSurfaceVideo(IVideoCallViewHolder vh)
void onBindViewHolder(IVideoCallViewHolder vh)
IVideoCallViewHolder onCreateViewHolder(View v, SCViewDescription vd)
void onFaceDetection(Object[] faces, Camera camera)
boolean onLoadOverlayPosition(View overlay)
void onbindButtonToggleCam(IVideoCallViewHolder vh)
void onupdateConnectionQuality()
void setScaleMethod()
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.gui.core.controller.SCBaseController
From class java.lang.Object
From interface android.view.View.OnAttachStateChangeListener
From interface com.c2call.sdk.pub.gui.core.common.IActivityResultListener
From interface com.c2call.sdk.pub.gui.core.controller.IController
From interface com.c2call.sdk.pub.gui.videocall.controller.IVideoCallController
From interface com.c2call.sdk.pub.video.IVideoMaster

Public Constructors

public SCVideoCallController (View view, SCViewDescription viewDescription)

Public Methods

public void enableFaceDetection (boolean enable)

public boolean enablePreviewAnimation ()

If this method returns true, then your own video preview will be large and centered until the far end video stream is received. Then it will smoothly move into its final position. Otherwise, if it returns false, the preview will be shown at its final position from the start up.

public IVideoSlave getVideoSlave ()

Gets the VideoSlave

Returns
  • the VideoSlave

public boolean isFaceDetectionEnabled ()

public boolean onBackPressed ()

Notify the controller that the back button was pressed

Returns
  • true if this event was consumed.

public void onButtonFillSrceenClicked (View v)

Callde when the fill screen Button was clicked

Parameters
v the clicked button

public void onButtonHangupClicked (View v)

Called when the hangup Button was clicked

Parameters
v the clicked button

public void onButtonHideClicked (View v)

Called when the hide Button was clicked

Parameters
v the clicked button

public void onButtonMicClicked (View v)

Called when the microphone button was clicked

Parameters
v the clicked button

public void onButtonRotatePreviewClicked (View v)

Called when the rotate preview button was clicked

Parameters
v the clicked button

public void onButtonSpeakerClicked (View v)

Called when the speaker button was clicked

Parameters
v the clicked button

public synchronized void onButtonToggleCamClicked (View v)

Called when the toggle camera Button was clicked

Parameters
v the clicked button

public boolean onConfigurationChanged (Configuration newConfig)

Notifies the controller about configuration changes. See onConfigurationChanged(...) for more details.

Returns
  • whether this event was consumed or not.

public void onConnectionQuality (int quality)

public void onCreate (Activity context, SCActivityResultDispatcher resultDispatcher)

This should be called when your Activity is created. Typically in onCreate(...) of the surrounding Activiy.

Parameters
context the surrounding activity
resultDispatcher a result dispatcher that is used by the controller

public void onDestroy ()

Notifies the controller that tha surrounding activity will be destroyed.

public void onPause ()

Notifies the controller that tha surrounding activity has paused

public void onResume ()

Notifies the controller that tha surrounding activity is resumed.

public void onStart ()

Notifies the controller that tha surrounding activity has started.

public void onStartVideo ()

public void onStop ()

Notifies the controller that tha surrounding activity has stopped.

public void onSurfaceVideoClicked (View v)

Called when the video surface was clicked

Parameters
v the clicked view

public void onUpdateVideoSlots (ArrayList<SCVideoCallRegion> regions)

public void onVideoPreStop ()

public void onVideoStopped ()

public void onVideoStreamAdded (long ssrc)

public void resetFixedPosition ()

public void setVideoSlave (IVideoSlave videoSlave)

Sets the VideoSlave

Parameters
videoSlave the video slave

public void showControls (boolean show)

public void startVideo ()

Starts the video

public void toggleOverlays ()

Protected Methods

protected void onBindButtonFillScreen (IVideoCallViewHolder vh)

protected void onBindButtonHangup (IVideoCallViewHolder vh)

protected void onBindButtonMic (IVideoCallViewHolder vh)

protected void onBindButtonRotatePreview (IVideoCallViewHolder vh)

protected void onBindButtonSpeaker (IVideoCallViewHolder vh)

protected void onBindPreviewOverlay (IVideoCallViewHolder vh)

protected void onBindSurfaceVideo (IVideoCallViewHolder vh)

protected void onBindViewHolder (IVideoCallViewHolder vh)

protected IVideoCallViewHolder onCreateViewHolder (View v, SCViewDescription vd)

protected void onFaceDetection (Object[] faces, Camera camera)

protected boolean onLoadOverlayPosition (View overlay)

protected void onbindButtonToggleCam (IVideoCallViewHolder vh)

protected void onupdateConnectionQuality ()

protected void setScaleMethod ()