Changeset 5972 for pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
- Timestamp:
- Apr 23, 2019 10:49:56 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
r5969 r5972 2055 2055 PJSUA2_CHECK_EXPR( pjsua_enum_conf_ports(ids, &count) ); 2056 2056 for (i = 0; i < count; ++i) { 2057 AudioMedia am;2058 am. id = ids[i];2057 AudioMediaHelper am; 2058 am.setPortId(ids[i]); 2059 2059 amv2.push_back(am); 2060 2060 } 2061 2061 2062 2062 return amv2; 2063 } 2064 2065 VideoMediaVector 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; 2063 2079 } 2064 2080
Note: See TracChangeset
for help on using the changeset viewer.