2019-02-04 20:08:30 +00:00
|
|
|
.class public Lorg/webrtc/PeerConnection;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "PeerConnection.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lorg/webrtc/PeerConnection$RTCConfiguration;,
|
|
|
|
Lorg/webrtc/PeerConnection$IntervalRange;,
|
|
|
|
Lorg/webrtc/PeerConnection$ContinualGatheringPolicy;,
|
|
|
|
Lorg/webrtc/PeerConnection$KeyType;,
|
|
|
|
Lorg/webrtc/PeerConnection$CandidateNetworkPolicy;,
|
|
|
|
Lorg/webrtc/PeerConnection$TcpCandidatePolicy;,
|
|
|
|
Lorg/webrtc/PeerConnection$RtcpMuxPolicy;,
|
|
|
|
Lorg/webrtc/PeerConnection$BundlePolicy;,
|
|
|
|
Lorg/webrtc/PeerConnection$IceTransportsType;,
|
|
|
|
Lorg/webrtc/PeerConnection$IceServer;,
|
|
|
|
Lorg/webrtc/PeerConnection$Observer;,
|
|
|
|
Lorg/webrtc/PeerConnection$SignalingState;,
|
|
|
|
Lorg/webrtc/PeerConnection$TlsCertPolicy;,
|
|
|
|
Lorg/webrtc/PeerConnection$IceConnectionState;,
|
|
|
|
Lorg/webrtc/PeerConnection$IceGatheringState;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation runtime Lorg/webrtc/JNINamespace;
|
|
|
|
value = "webrtc::jni"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field private final localStreams:Ljava/util/List;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lorg/webrtc/MediaStream;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field private final nativePeerConnection:J
|
|
|
|
|
|
|
|
.field private receivers:Ljava/util/List;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lorg/webrtc/RtpReceiver;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field private senders:Ljava/util/List;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lorg/webrtc/RtpSender;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method constructor <init>(J)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
iput-object v0, p0, Lorg/webrtc/PeerConnection;->localStreams:Ljava/util/List;
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
iput-object v0, p0, Lorg/webrtc/PeerConnection;->senders:Ljava/util/List;
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
iput-object v0, p0, Lorg/webrtc/PeerConnection;->receivers:Ljava/util/List;
|
|
|
|
|
|
|
|
iput-wide p1, p0, Lorg/webrtc/PeerConnection;->nativePeerConnection:J
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Lorg/webrtc/NativePeerConnectionFactory;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-interface {p1}, Lorg/webrtc/NativePeerConnectionFactory;->createNativePeerConnection()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1}, Lorg/webrtc/PeerConnection;-><init>(J)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static createNativePeerConnectionObserver(Lorg/webrtc/PeerConnection$Observer;)J
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-static {p0}, Lorg/webrtc/PeerConnection;->nativeCreatePeerConnectionObserver(Lorg/webrtc/PeerConnection$Observer;)J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeAddIceCandidate(Ljava/lang/String;ILjava/lang/String;)Z
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeAddLocalStream(J)Z
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeClose()V
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeCreateAnswer(Lorg/webrtc/SdpObserver;Lorg/webrtc/MediaConstraints;)V
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeCreateDataChannel(Ljava/lang/String;Lorg/webrtc/DataChannel$Init;)Lorg/webrtc/DataChannel;
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeCreateOffer(Lorg/webrtc/SdpObserver;Lorg/webrtc/MediaConstraints;)V
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private static native nativeCreatePeerConnectionObserver(Lorg/webrtc/PeerConnection$Observer;)J
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeCreateSender(Ljava/lang/String;Ljava/lang/String;)Lorg/webrtc/RtpSender;
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private static native nativeFreeOwnedPeerConnection(J)V
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeGetLocalDescription()Lorg/webrtc/SessionDescription;
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeGetNativePeerConnection()J
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeGetReceivers()Ljava/util/List;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lorg/webrtc/RtpReceiver;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeGetRemoteDescription()Lorg/webrtc/SessionDescription;
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeGetSenders()Ljava/util/List;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lorg/webrtc/RtpSender;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeIceConnectionState()Lorg/webrtc/PeerConnection$IceConnectionState;
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeIceGatheringState()Lorg/webrtc/PeerConnection$IceGatheringState;
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeNewGetStats(Lorg/webrtc/RTCStatsCollectorCallback;)V
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeOldGetStats(Lorg/webrtc/StatsObserver;J)Z
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeRemoveIceCandidates([Lorg/webrtc/IceCandidate;)Z
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeRemoveLocalStream(J)V
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeSetAudioPlayout(Z)V
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeSetAudioRecording(Z)V
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeSetBitrate(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)Z
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeSetConfiguration(Lorg/webrtc/PeerConnection$RTCConfiguration;)Z
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeSetLocalDescription(Lorg/webrtc/SdpObserver;Lorg/webrtc/SessionDescription;)V
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeSetRemoteDescription(Lorg/webrtc/SdpObserver;Lorg/webrtc/SessionDescription;)V
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeSignalingState()Lorg/webrtc/PeerConnection$SignalingState;
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeStartRtcEventLog(II)Z
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private native nativeStopRtcEventLog()V
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public addIceCandidate(Lorg/webrtc/IceCandidate;)Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p1, Lorg/webrtc/IceCandidate;->sdpMid:Ljava/lang/String;
|
|
|
|
|
|
|
|
iget v1, p1, Lorg/webrtc/IceCandidate;->sdpMLineIndex:I
|
|
|
|
|
|
|
|
iget-object p1, p1, Lorg/webrtc/IceCandidate;->sdp:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1, p1}, Lorg/webrtc/PeerConnection;->nativeAddIceCandidate(Ljava/lang/String;ILjava/lang/String;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public addStream(Lorg/webrtc/MediaStream;)Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-wide v0, p1, Lorg/webrtc/MediaStream;->nativeStream:J
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1}, Lorg/webrtc/PeerConnection;->nativeAddLocalStream(J)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Lorg/webrtc/PeerConnection;->localStreams:Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public close()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lorg/webrtc/PeerConnection;->nativeClose()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public createAnswer(Lorg/webrtc/SdpObserver;Lorg/webrtc/MediaConstraints;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lorg/webrtc/PeerConnection;->nativeCreateAnswer(Lorg/webrtc/SdpObserver;Lorg/webrtc/MediaConstraints;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public createDataChannel(Ljava/lang/String;Lorg/webrtc/DataChannel$Init;)Lorg/webrtc/DataChannel;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lorg/webrtc/PeerConnection;->nativeCreateDataChannel(Ljava/lang/String;Lorg/webrtc/DataChannel$Init;)Lorg/webrtc/DataChannel;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public createOffer(Lorg/webrtc/SdpObserver;Lorg/webrtc/MediaConstraints;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lorg/webrtc/PeerConnection;->nativeCreateOffer(Lorg/webrtc/SdpObserver;Lorg/webrtc/MediaConstraints;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public createSender(Ljava/lang/String;Ljava/lang/String;)Lorg/webrtc/RtpSender;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lorg/webrtc/PeerConnection;->nativeCreateSender(Ljava/lang/String;Ljava/lang/String;)Lorg/webrtc/RtpSender;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
iget-object p2, p0, Lorg/webrtc/PeerConnection;->senders:Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-interface {p2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public dispose()V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lorg/webrtc/PeerConnection;->close()V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lorg/webrtc/PeerConnection;->localStreams:Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lorg/webrtc/MediaStream;
|
|
|
|
|
|
|
|
iget-wide v2, v1, Lorg/webrtc/MediaStream;->nativeStream:J
|
|
|
|
|
|
|
|
invoke-direct {p0, v2, v3}, Lorg/webrtc/PeerConnection;->nativeRemoveLocalStream(J)V
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lorg/webrtc/MediaStream;->dispose()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Lorg/webrtc/PeerConnection;->localStreams:Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->clear()V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lorg/webrtc/PeerConnection;->senders:Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lorg/webrtc/RtpSender;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lorg/webrtc/RtpSender;->dispose()V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget-object v0, p0, Lorg/webrtc/PeerConnection;->senders:Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->clear()V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lorg/webrtc/PeerConnection;->receivers:Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lorg/webrtc/RtpReceiver;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lorg/webrtc/RtpReceiver;->dispose()V
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
iget-object v0, p0, Lorg/webrtc/PeerConnection;->receivers:Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->clear()V
|
|
|
|
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/PeerConnection;->nativePeerConnection:J
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lorg/webrtc/PeerConnection;->nativeFreeOwnedPeerConnection(J)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getLocalDescription()Lorg/webrtc/SessionDescription;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lorg/webrtc/PeerConnection;->nativeGetLocalDescription()Lorg/webrtc/SessionDescription;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method getNativeOwnedPeerConnection()J
|
|
|
|
.locals 2
|
|
|
|
.annotation build Lorg/webrtc/CalledByNative;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/PeerConnection;->nativePeerConnection:J
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getNativePeerConnection()J
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lorg/webrtc/PeerConnection;->nativeGetNativePeerConnection()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getReceivers()Ljava/util/List;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lorg/webrtc/RtpReceiver;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-object v0, p0, Lorg/webrtc/PeerConnection;->receivers:Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lorg/webrtc/RtpReceiver;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lorg/webrtc/RtpReceiver;->dispose()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-direct {p0}, Lorg/webrtc/PeerConnection;->nativeGetReceivers()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lorg/webrtc/PeerConnection;->receivers:Ljava/util/List;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lorg/webrtc/PeerConnection;->receivers:Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getRemoteDescription()Lorg/webrtc/SessionDescription;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lorg/webrtc/PeerConnection;->nativeGetRemoteDescription()Lorg/webrtc/SessionDescription;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getSenders()Ljava/util/List;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lorg/webrtc/RtpSender;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-object v0, p0, Lorg/webrtc/PeerConnection;->senders:Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lorg/webrtc/RtpSender;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lorg/webrtc/RtpSender;->dispose()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-direct {p0}, Lorg/webrtc/PeerConnection;->nativeGetSenders()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lorg/webrtc/PeerConnection;->senders:Ljava/util/List;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lorg/webrtc/PeerConnection;->senders:Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getStats(Lorg/webrtc/RTCStatsCollectorCallback;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lorg/webrtc/PeerConnection;->nativeNewGetStats(Lorg/webrtc/RTCStatsCollectorCallback;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getStats(Lorg/webrtc/StatsObserver;Lorg/webrtc/MediaStreamTrack;)Z
|
|
|
|
.locals 2
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-wide v0, p2, Lorg/webrtc/MediaStreamTrack;->nativeTrack:J
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-direct {p0, p1, v0, v1}, Lorg/webrtc/PeerConnection;->nativeOldGetStats(Lorg/webrtc/StatsObserver;J)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public iceConnectionState()Lorg/webrtc/PeerConnection$IceConnectionState;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lorg/webrtc/PeerConnection;->nativeIceConnectionState()Lorg/webrtc/PeerConnection$IceConnectionState;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public iceGatheringState()Lorg/webrtc/PeerConnection$IceGatheringState;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lorg/webrtc/PeerConnection;->nativeIceGatheringState()Lorg/webrtc/PeerConnection$IceGatheringState;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public removeIceCandidates([Lorg/webrtc/IceCandidate;)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lorg/webrtc/PeerConnection;->nativeRemoveIceCandidates([Lorg/webrtc/IceCandidate;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public removeStream(Lorg/webrtc/MediaStream;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-wide v0, p1, Lorg/webrtc/MediaStream;->nativeStream:J
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1}, Lorg/webrtc/PeerConnection;->nativeRemoveLocalStream(J)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lorg/webrtc/PeerConnection;->localStreams:Ljava/util/List;
|
|
|
|
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setAudioPlayout(Z)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lorg/webrtc/PeerConnection;->nativeSetAudioPlayout(Z)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setAudioRecording(Z)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lorg/webrtc/PeerConnection;->nativeSetAudioRecording(Z)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setBitrate(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lorg/webrtc/PeerConnection;->nativeSetBitrate(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setConfiguration(Lorg/webrtc/PeerConnection$RTCConfiguration;)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lorg/webrtc/PeerConnection;->nativeSetConfiguration(Lorg/webrtc/PeerConnection$RTCConfiguration;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setLocalDescription(Lorg/webrtc/SdpObserver;Lorg/webrtc/SessionDescription;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lorg/webrtc/PeerConnection;->nativeSetLocalDescription(Lorg/webrtc/SdpObserver;Lorg/webrtc/SessionDescription;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setRemoteDescription(Lorg/webrtc/SdpObserver;Lorg/webrtc/SessionDescription;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lorg/webrtc/PeerConnection;->nativeSetRemoteDescription(Lorg/webrtc/SdpObserver;Lorg/webrtc/SessionDescription;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public signalingState()Lorg/webrtc/PeerConnection$SignalingState;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lorg/webrtc/PeerConnection;->nativeSignalingState()Lorg/webrtc/PeerConnection$SignalingState;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public startRtcEventLog(II)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lorg/webrtc/PeerConnection;->nativeStartRtcEventLog(II)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public stopRtcEventLog()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lorg/webrtc/PeerConnection;->nativeStopRtcEventLog()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|