OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 sp.ssrcs.push_back(rtx_ssrcs[i]); | 261 sp.ssrcs.push_back(rtx_ssrcs[i]); |
262 std::vector<uint32_t> fid_ssrcs; | 262 std::vector<uint32_t> fid_ssrcs; |
263 fid_ssrcs.push_back(ssrcs[i]); | 263 fid_ssrcs.push_back(ssrcs[i]); |
264 fid_ssrcs.push_back(rtx_ssrcs[i]); | 264 fid_ssrcs.push_back(rtx_ssrcs[i]); |
265 cricket::SsrcGroup fid_group(cricket::kFidSsrcGroupSemantics, fid_ssrcs); | 265 cricket::SsrcGroup fid_group(cricket::kFidSsrcGroupSemantics, fid_ssrcs); |
266 sp.ssrc_groups.push_back(fid_group); | 266 sp.ssrc_groups.push_back(fid_group); |
267 } | 267 } |
268 return sp; | 268 return sp; |
269 } | 269 } |
270 | 270 |
| 271 cricket::StreamParams CreatePrimaryWithFecFrStreamParams( |
| 272 const std::string& cname, |
| 273 uint32_t primary_ssrc, |
| 274 uint32_t flexfec_ssrc) { |
| 275 cricket::StreamParams sp; |
| 276 cricket::SsrcGroup sg(cricket::kFecFrSsrcGroupSemantics, |
| 277 {primary_ssrc, flexfec_ssrc}); |
| 278 sp.ssrcs = {primary_ssrc}; |
| 279 sp.ssrc_groups.push_back(sg); |
| 280 sp.cname = cname; |
| 281 return sp; |
| 282 } |
| 283 |
271 } // namespace cricket | 284 } // namespace cricket |
OLD | NEW |