OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2013 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 public void onDataChannel(DataChannel dataChannel); | 85 public void onDataChannel(DataChannel dataChannel); |
86 | 86 |
87 /** Triggered when renegotiation is necessary. */ | 87 /** Triggered when renegotiation is necessary. */ |
88 public void onRenegotiationNeeded(); | 88 public void onRenegotiationNeeded(); |
89 | 89 |
90 /** | 90 /** |
91 * Triggered when a new track is signaled by the remote peer, as a result of | 91 * Triggered when a new track is signaled by the remote peer, as a result of |
92 * setRemoteDescription. | 92 * setRemoteDescription. |
93 */ | 93 */ |
94 public void onAddTrack(RtpReceiver receiver, MediaStream[] mediaStreams); | 94 public void onAddTrack(RtpReceiver receiver, MediaStream[] mediaStreams); |
| 95 |
| 96 /** |
| 97 * Triggered when a previously added remote track is removed by the remote p
eer, |
| 98 * as a result of setRemoteDescription. |
| 99 */ |
| 100 public default void |
| 101 onRemoveTrack(RtpReceiver receiver, MediaStream[] mediaStreams) {} |
95 } | 102 } |
96 | 103 |
97 /** Java version of PeerConnectionInterface.IceServer. */ | 104 /** Java version of PeerConnectionInterface.IceServer. */ |
98 public static class IceServer { | 105 public static class IceServer { |
99 // List of URIs associated with this server. Valid formats are described | 106 // List of URIs associated with this server. Valid formats are described |
100 // in RFC7064 and RFC7065, and more may be added in the future. The "host" | 107 // in RFC7064 and RFC7065, and more may be added in the future. The "host" |
101 // part of the URI may contain either an IP address or a hostname. | 108 // part of the URI may contain either an IP address or a hostname. |
102 public final String uri; | 109 public final String uri; |
103 public final String username; | 110 public final String username; |
104 public final String password; | 111 public final String password; |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 private native RtpSender nativeCreateSender(String kind, String stream_id); | 438 private native RtpSender nativeCreateSender(String kind, String stream_id); |
432 | 439 |
433 private native List<RtpSender> nativeGetSenders(); | 440 private native List<RtpSender> nativeGetSenders(); |
434 | 441 |
435 private native List<RtpReceiver> nativeGetReceivers(); | 442 private native List<RtpReceiver> nativeGetReceivers(); |
436 | 443 |
437 private native boolean nativeStartRtcEventLog(int file_descriptor, int max_siz
e_bytes); | 444 private native boolean nativeStartRtcEventLog(int file_descriptor, int max_siz
e_bytes); |
438 | 445 |
439 private native void nativeStopRtcEventLog(); | 446 private native void nativeStopRtcEventLog(); |
440 } | 447 } |
OLD | NEW |