Ignore:
Timestamp:
Jul 15, 2011 7:41:02 AM (13 years ago)
Author:
nanang
Message:

Re #1263:

  • Replaced video stream operation DISABLE into REMOVE.
  • Replaced video stream operation ENABLE into CHANGEDIR.
  • Added new param: media direction, used in operation ADD and CHANGEDIR.
  • Updated video stream operation START_TRANSMIT to ignore capture device param (as changing capture device is handled by CHANGE_CAP_DEV operation).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjsip/include/pjsua-lib/pjsua.h

    r3652 r3657  
    382382 
    383383    /** 
    384      * Disable/remove an existing video stream. 
    385      */ 
    386     PJSUA_CALL_VID_STRM_DISABLE, 
    387  
    388     /** 
    389      * Enable video stream. 
    390      */ 
    391     PJSUA_CALL_VID_STRM_ENABLE, 
    392  
    393     /** 
    394      * Changing capture device of a video stream. 
     384     * Remove/disable an existing video stream. 
     385     */ 
     386    PJSUA_CALL_VID_STRM_REMOVE, 
     387 
     388    /** 
     389     * Change direction of a video stream. 
     390     */ 
     391    PJSUA_CALL_VID_STRM_CHANGE_DIR, 
     392 
     393    /** 
     394     * Change capture device of a video stream. 
    395395     */ 
    396396    PJSUA_CALL_VID_STRM_CHANGE_CAP_DEV, 
     
    421421     * This field is valid for all video stream operations, except 
    422422     * PJSUA_CALL_VID_STRM_ADD. 
     423     * 
     424     * Default: -1 (first active video stream, or any first video stream 
     425     *              if none is active) 
    423426     */ 
    424427    int med_idx; 
     428  
     429    /** 
     430     * Specify the media stream direction. 
     431     * 
     432     * This field is valid for the following video stream operations: 
     433     * PJSUA_CALL_VID_STRM_ADD and PJSUA_CALL_VID_STRM_CHANGE_DIR. 
     434     * 
     435     * Default: PJMEDIA_DIR_ENCODING_DECODING 
     436     */ 
     437    pjmedia_dir dir; 
    425438  
    426439    /** 
     
    430443     * 
    431444     * This field is valid for the following video stream operations: 
    432      * PJSUA_CALL_VID_STRM_ADD, PJSUA_CALL_VID_STRM_CHANGE_CAP_DEV, and 
    433      * PJSUA_CALL_VID_STRM_START_TRANSMIT. 
     445     * PJSUA_CALL_VID_STRM_ADD and PJSUA_CALL_VID_STRM_CHANGE_CAP_DEV. 
     446     * 
     447     * Default: capture device configured in account. 
    434448     */ 
    435449    pjmedia_vid_dev_index cap_dev; 
     
    37733787 * @param op            The video stream operation to be performed, 
    37743788 *                      possible values are #pjsua_call_vid_strm_op. 
    3775  * @param param         The parameters for the video stream operation. 
     3789 * @param param         The parameters for the video stream operation, 
     3790 *                      or NULL for the default parameter values 
     3791 *                      (see #pjsua_call_vid_strm_op_param). 
    37763792 * 
    37773793 * @return              PJ_SUCCESS on success or the appropriate error. 
Note: See TracChangeset for help on using the changeset viewer.