| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 |
| 11 #include "webrtc/examples/unityplugin/simple_peer_connection.h" | 11 #include "webrtc/examples/unityplugin/simple_peer_connection.h" |
| 12 | 12 |
| 13 #include <utility> | 13 #include <utility> |
| 14 | 14 |
| 15 #include "webrtc/api/test/fakeconstraints.h" | 15 #include "webrtc/api/test/fakeconstraints.h" |
| 16 #include "webrtc/base/json.h" | |
| 17 #include "webrtc/media/engine/webrtcvideocapturerfactory.h" | 16 #include "webrtc/media/engine/webrtcvideocapturerfactory.h" |
| 18 #include "webrtc/modules/video_capture/video_capture_factory.h" | 17 #include "webrtc/modules/video_capture/video_capture_factory.h" |
| 18 #include "webrtc/rtc_base/json.h" |
| 19 | 19 |
| 20 // Names used for a IceCandidate JSON object. | 20 // Names used for a IceCandidate JSON object. |
| 21 const char kCandidateSdpMidName[] = "sdpMid"; | 21 const char kCandidateSdpMidName[] = "sdpMid"; |
| 22 const char kCandidateSdpMlineIndexName[] = "sdpMLineIndex"; | 22 const char kCandidateSdpMlineIndexName[] = "sdpMLineIndex"; |
| 23 const char kCandidateSdpName[] = "candidate"; | 23 const char kCandidateSdpName[] = "candidate"; |
| 24 | 24 |
| 25 // Names used for a SessionDescription JSON object. | 25 // Names used for a SessionDescription JSON object. |
| 26 const char kSessionDescriptionTypeName[] = "type"; | 26 const char kSessionDescriptionTypeName[] = "type"; |
| 27 const char kSessionDescriptionSdpName[] = "sdp"; | 27 const char kSessionDescriptionSdpName[] = "sdp"; |
| 28 | 28 |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 | 505 |
| 506 for (const auto& param : params) { | 506 for (const auto& param : params) { |
| 507 uint32_t ssrc = param.ssrc.value_or(0); | 507 uint32_t ssrc = param.ssrc.value_or(0); |
| 508 if (ssrc > 0) | 508 if (ssrc > 0) |
| 509 ssrcs.push_back(ssrc); | 509 ssrcs.push_back(ssrc); |
| 510 } | 510 } |
| 511 } | 511 } |
| 512 | 512 |
| 513 return ssrcs; | 513 return ssrcs; |
| 514 } | 514 } |
| OLD | NEW |