Ignore:
Timestamp:
Apr 23, 2019 10:49:56 AM (6 years ago)
Author:
nanang
Message:

Re #2181: Implemented video conference APIs for PJSUA2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp

    r5969 r5972  
    20552055    PJSUA2_CHECK_EXPR( pjsua_enum_conf_ports(ids, &count) ); 
    20562056    for (i = 0; i < count; ++i) { 
    2057         AudioMedia am; 
    2058         am.id = ids[i]; 
     2057        AudioMediaHelper am; 
     2058        am.setPortId(ids[i]); 
    20592059        amv2.push_back(am); 
    20602060    } 
    20612061 
    20622062    return amv2; 
     2063} 
     2064 
     2065VideoMediaVector Endpoint::mediaEnumVidPorts() const throw(Error) 
     2066{ 
     2067    VideoMediaVector vmv; 
     2068    pjsua_conf_port_id ids[PJSUA_MAX_CONF_PORTS]; 
     2069    unsigned i, count = PJSUA_MAX_CONF_PORTS; 
     2070 
     2071    PJSUA2_CHECK_EXPR( pjsua_vid_conf_enum_ports(ids, &count) ); 
     2072    for (i = 0; i < count; ++i) { 
     2073        VideoMediaHelper vm; 
     2074        vm.setPortId(ids[i]); 
     2075        vmv.push_back(vm); 
     2076    } 
     2077 
     2078    return vmv; 
    20632079} 
    20642080 
Note: See TracChangeset for help on using the changeset viewer.