Implement JNI and objc implementation for Ice Candidate Pair Change event surfacing
Bug: webrtc:10419 Change-Id: I18528bf2526e933568bf052de76a434f012161da Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/148320 Commit-Queue: Alex Drake <alexdrake@google.com> Reviewed-by: Steve Anton <steveanton@webrtc.org> Reviewed-by: Anders Carlsson <andersc@webrtc.org> Reviewed-by: Qingsi Wang <qingsi@webrtc.org> Reviewed-by: Alex Glaznev <glaznev@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28838}
This commit is contained in:
31
sdk/android/api/org/webrtc/CandidatePairChangeEvent.java
Normal file
31
sdk/android/api/org/webrtc/CandidatePairChangeEvent.java
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright 2013 The WebRTC project authors. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by a BSD-style license
|
||||
* that can be found in the LICENSE file in the root of the source
|
||||
* tree. An additional intellectual property rights grant can be found
|
||||
* in the file PATENTS. All contributing project authors may
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
package org.webrtc;
|
||||
|
||||
/**
|
||||
* Representation of a change in selected ICE candidate pair.
|
||||
* {@code CandidatePairChangeEvent} in the C++ API.
|
||||
*/
|
||||
public final class CandidatePairChangeEvent {
|
||||
public final IceCandidate local;
|
||||
public final IceCandidate remote;
|
||||
public final int lastDataReceivedMs;
|
||||
public final String reason;
|
||||
|
||||
@CalledByNative
|
||||
CandidatePairChangeEvent(
|
||||
IceCandidate local, IceCandidate remote, int lastDataReceivedMs, String reason) {
|
||||
this.local = local;
|
||||
this.remote = remote;
|
||||
this.lastDataReceivedMs = lastDataReceivedMs;
|
||||
this.reason = reason;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user