Consumer.smali
.class public Lorg/mediasoup/Consumer;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lorg/mediasoup/Consumer$Listener;
}
.end annotation
# instance fields
.field private mCachedTrack:Lorg/webrtc/MediaStreamTrack;
.field private mNativeConsumer:J
# direct methods
.method public constructor <init>(J)V
.registers 3
.annotation build Lorg/webrtc/CalledByNative;
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-wide p1, p0, Lorg/mediasoup/Consumer;->mNativeConsumer:J
.line 3
invoke-static {p1, p2}, Lorg/mediasoup/Consumer;->nativeGetTrack(J)J
move-result-wide p1
.line 4
invoke-static {p1, p2}, Lorg/webrtc/RTCUtils;->createMediaStreamTrack(J)Lorg/webrtc/MediaStreamTrack;
move-result-object p1
iput-object p1, p0, Lorg/mediasoup/Consumer;->mCachedTrack:Lorg/webrtc/MediaStreamTrack;
return-void
.end method
.method private static native nativeClose(J)V
.end method
.method private static native nativeGetAppData(J)Ljava/lang/String;
.end method
.method private static native nativeGetKind(J)Ljava/lang/String;
.end method
.method private static native nativeGetNativeId(J)Ljava/lang/String;
.end method
.method private static native nativeGetProducerId(J)Ljava/lang/String;
.end method
.method private static native nativeGetRtpParameters(J)Ljava/lang/String;
.end method
.method private static native nativeGetStats(J)Ljava/lang/String;
.end method
.method private static native nativeGetTrack(J)J
.end method
.method private static native nativeIsClosed(J)Z
.end method
.method private static native nativeIsPaused(J)Z
.end method
.method private static native nativePause(J)V
.end method
.method private static native nativeResume(J)V
.end method
# virtual methods
.method public close()V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Lorg/mediasoup/MediasoupException;
}
.end annotation
.line 1
iget-wide v0, p0, Lorg/mediasoup/Consumer;->mNativeConsumer:J
invoke-static {v0, v1}, Lorg/mediasoup/Consumer;->nativeClose(J)V
const-wide/16 v0, 0x0
.line 2
iput-wide v0, p0, Lorg/mediasoup/Consumer;->mNativeConsumer:J
return-void
.end method
.method public getAppData()Ljava/lang/String;
.registers 3
iget-wide v0, p0, Lorg/mediasoup/Consumer;->mNativeConsumer:J
invoke-static {v0, v1}, Lorg/mediasoup/Consumer;->nativeGetAppData(J)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getId()Ljava/lang/String;
.registers 3
iget-wide v0, p0, Lorg/mediasoup/Consumer;->mNativeConsumer:J
invoke-static {v0, v1}, Lorg/mediasoup/Consumer;->nativeGetNativeId(J)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getKind()Ljava/lang/String;
.registers 3
iget-wide v0, p0, Lorg/mediasoup/Consumer;->mNativeConsumer:J
invoke-static {v0, v1}, Lorg/mediasoup/Consumer;->nativeGetKind(J)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getProducerId()Ljava/lang/String;
.registers 3
iget-wide v0, p0, Lorg/mediasoup/Consumer;->mNativeConsumer:J
invoke-static {v0, v1}, Lorg/mediasoup/Consumer;->nativeGetProducerId(J)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getRtpParameters()Ljava/lang/String;
.registers 3
iget-wide v0, p0, Lorg/mediasoup/Consumer;->mNativeConsumer:J
invoke-static {v0, v1}, Lorg/mediasoup/Consumer;->nativeGetRtpParameters(J)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getStats()Ljava/lang/String;
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Lorg/mediasoup/MediasoupException;
}
.end annotation
iget-wide v0, p0, Lorg/mediasoup/Consumer;->mNativeConsumer:J
invoke-static {v0, v1}, Lorg/mediasoup/Consumer;->nativeGetStats(J)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getTrack()Lorg/webrtc/MediaStreamTrack;
.registers 2
iget-object v0, p0, Lorg/mediasoup/Consumer;->mCachedTrack:Lorg/webrtc/MediaStreamTrack;
return-object v0
.end method
.method public isClosed()Z
.registers 3
iget-wide v0, p0, Lorg/mediasoup/Consumer;->mNativeConsumer:J
invoke-static {v0, v1}, Lorg/mediasoup/Consumer;->nativeIsClosed(J)Z
move-result v0
return v0
.end method
.method public isPaused()Z
.registers 3
iget-wide v0, p0, Lorg/mediasoup/Consumer;->mNativeConsumer:J
invoke-static {v0, v1}, Lorg/mediasoup/Consumer;->nativeIsPaused(J)Z
move-result v0
return v0
.end method
.method public pause()V
.registers 3
iget-wide v0, p0, Lorg/mediasoup/Consumer;->mNativeConsumer:J
invoke-static {v0, v1}, Lorg/mediasoup/Consumer;->nativePause(J)V
return-void
.end method
.method public resume()V
.registers 3
iget-wide v0, p0, Lorg/mediasoup/Consumer;->mNativeConsumer:J
invoke-static {v0, v1}, Lorg/mediasoup/Consumer;->nativeResume(J)V
return-void
.end method