Ignore:
Timestamp:
Jul 12, 2011 11:08:32 AM (13 years ago)
Author:
nanang
Message:

Re #1263:

  • implemented video window management (get/set visibility, pos, resize)
  • integrated video window and video capture preview into call
File:
1 edited

Legend:

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

    r3609 r3629  
    111111        call_med->ssrc = pj_rand(); 
    112112        call_med->strm.a.conf_slot = PJSUA_INVALID_ID; 
     113        call_med->strm.v.cap_win_id = PJSUA_INVALID_ID; 
     114        call_med->strm.v.rdr_win_id = PJSUA_INVALID_ID; 
    113115        call_med->call = call; 
    114116        call_med->idx = i; 
     
    13171319                                                call_med->strm.a.conf_slot; 
    13181320        } else if (call_med->type == PJMEDIA_TYPE_VIDEO) { 
    1319             PJ_TODO(vid_fill_in_call_info); 
    1320             info->media[info->media_cnt].stream.vid.win_in = PJSUA_INVALID_ID; 
    1321             info->media[info->media_cnt].stream.vid.cap_dev = 
    1322                     PJMEDIA_VID_INVALID_DEV; 
     1321            pjmedia_vid_dev_index cap_dev = PJMEDIA_VID_INVALID_DEV; 
     1322 
     1323            info->media[info->media_cnt].stream.vid.win_in =  
     1324                                                call_med->strm.v.rdr_win_id; 
     1325 
     1326            if (call_med->strm.v.cap_win_id != PJSUA_INVALID_ID) { 
     1327                pjsua_vid_win *w = &pjsua_var.win[call_med->strm.v.cap_win_id]; 
     1328                cap_dev = w->preview_cap_id; 
     1329            } 
     1330            info->media[info->media_cnt].stream.vid.cap_dev = cap_dev; 
    13231331        } else { 
    13241332            continue; 
Note: See TracChangeset for help on using the changeset viewer.