oms.vt
Class VTController

java.lang.Object
  extended by oms.vt.VTController

public class VTController
extends java.lang.Object

Class VTController provides some definations to control Video Telephony application.

Bellow are sample codes to show how to use the definations in class VTController to interact with Video Telephony application.

Here is the example to show how to make a Video Call

        //Create an Intent to launch VT application
        Intent i = new Intent( VTController.ACTION_LAUNCH_VTCALL);
        i.setFlags( Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENT);
  
  //Specify the extra calling parameters
        i.putExtra( VTController.EXTRA_CALL_OR_ANSWER, TRUE);
        i.putExtra( VTController.EXTRA_LAUNCH_MODE, 1);
        //theCallingNumber is the number you want to call.
        i.putExtra( VTController.EXTRA_PHONE_URL, callingNumber);
        
        startActivity( i);
 

Here is the example to show how to stop a Video Call

        //Create an Intent to stop VT application
        Intent i = new Intent( VTController.ACTION_STOP_VTCALL);
        
        sendBroadcast( i);
 


Field Summary
static java.lang.String ACTION_LAUNCH_VTCALL
          Intent to launch VT application.
static java.lang.String ACTION_STOP_VTCALL
          Intent to stop VT application.
static java.lang.String EXTRA_CALL_OR_ANSWER
          Extra data for ACTION_LAUNCH_VTCALL to specify the VT application purpose: dial out or answer an incoming call.
static java.lang.String EXTRA_LAUNCH_MODE
          Extra data for ACTION_LAUNCH_VTCALL to specify the launch mode.
static java.lang.String EXTRA_PHONE_URL
          Extra data for ACTION_LAUNCH_VTCALL to specify the dial out number.
 
Constructor Summary
VTController()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_LAUNCH_VTCALL

public static final java.lang.String ACTION_LAUNCH_VTCALL
Intent to launch VT application. Use this intent by startActivity().

See Also:
Constant Field Values

EXTRA_CALL_OR_ANSWER

public static final java.lang.String EXTRA_CALL_OR_ANSWER
Extra data for ACTION_LAUNCH_VTCALL to specify the VT application purpose: dial out or answer an incoming call. This extra data is a boolean type. Make sure it is true to launch VT application to dial out.

See Also:
Constant Field Values

EXTRA_LAUNCH_MODE

public static final java.lang.String EXTRA_LAUNCH_MODE
Extra data for ACTION_LAUNCH_VTCALL to specify the launch mode. This extra data is a integer type. And it must be 1.

See Also:
Constant Field Values

EXTRA_PHONE_URL

public static final java.lang.String EXTRA_PHONE_URL
Extra data for ACTION_LAUNCH_VTCALL to specify the dial out number. This extra data is a string type. Make sure it carries a valid phone number.

See Also:
Constant Field Values

ACTION_STOP_VTCALL

public static final java.lang.String ACTION_STOP_VTCALL
Intent to stop VT application. Use this intent by sendBroadcast()

See Also:
Constant Field Values
Constructor Detail

VTController

public VTController()