Ignore:
Timestamp:
Jul 13, 2011 8:51:10 AM (13 years ago)
Author:
nanang
Message:

Re #1263:

  • Renamed API pjsua_call_set_vid_out() with pjsua_call_set_vid_strm().
  • Implemented initial version of the function, features covered:
    • add, remove video media stream during the call
    • change which device to use during the call
    • start/stop video stream transmission
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjsip/src/pjsua-lib/pjsua_media.c

    r3632 r3634  
    13141314 
    13151315/* Initialize the media line */ 
    1316 static pj_status_t pjsua_call_media_init(pjsua_call_media *call_med, 
    1317                                          pjmedia_type type, 
    1318                                         const pjsua_transport_config *tcfg, 
    1319                                         int security_level, 
    1320                                         int *sip_err_code) 
     1316pj_status_t pjsua_call_media_init(pjsua_call_media *call_med, 
     1317                                  pjmedia_type type, 
     1318                                  const pjsua_transport_config *tcfg, 
     1319                                  int security_level, 
     1320                                  int *sip_err_code) 
    13211321{ 
    13221322    pjsua_acc *acc = &pjsua_var.acc[call_med->call->acc_id]; 
     
    13431343         
    13441344        call_med->tp_st = PJSUA_MED_TP_IDLE; 
     1345 
     1346        /* While in initial call, set default video devices */ 
     1347        if (type == PJMEDIA_TYPE_VIDEO) { 
     1348            call_med->strm.v.rdr_dev = acc->cfg.vid_rend_dev; 
     1349            call_med->strm.v.cap_dev = acc->cfg.vid_cap_dev; 
     1350            if (call_med->strm.v.rdr_dev == PJMEDIA_VID_DEFAULT_RENDER_DEV) { 
     1351                pjmedia_vid_dev_info info; 
     1352                pjmedia_vid_dev_get_info(call_med->strm.v.rdr_dev, &info); 
     1353                call_med->strm.v.rdr_dev = info.id; 
     1354            } 
     1355            if (call_med->strm.v.cap_dev == PJMEDIA_VID_DEFAULT_CAPTURE_DEV) { 
     1356                pjmedia_vid_dev_info info; 
     1357                pjmedia_vid_dev_get_info(call_med->strm.v.cap_dev, &info); 
     1358                call_med->strm.v.cap_dev = info.id; 
     1359            } 
     1360        } 
    13451361    } else if (call_med->tp_st == PJSUA_MED_TP_DISABLED) { 
    13461362        /* Media is being reenabled. */ 
Note: See TracChangeset for help on using the changeset viewer.