119 lines
2.6 KiB
Smali
119 lines
2.6 KiB
Smali
.class public Lorg/webrtc/MediaStreamTrack;
|
|
.super Ljava/lang/Object;
|
|
.source "MediaStreamTrack.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lorg/webrtc/MediaStreamTrack$MediaType;,
|
|
Lorg/webrtc/MediaStreamTrack$State;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lorg/webrtc/JNINamespace;
|
|
value = "webrtc::jni"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final nativeTrack:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(J)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-wide p1, p0, Lorg/webrtc/MediaStreamTrack;->nativeTrack:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static native nativeGetEnabled(J)Z
|
|
.end method
|
|
|
|
.method private static native nativeGetId(J)Ljava/lang/String;
|
|
.end method
|
|
|
|
.method private static native nativeGetKind(J)Ljava/lang/String;
|
|
.end method
|
|
|
|
.method private static native nativeGetState(J)Lorg/webrtc/MediaStreamTrack$State;
|
|
.end method
|
|
|
|
.method private static native nativeSetEnabled(JZ)Z
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public dispose()V
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/MediaStreamTrack;->nativeTrack:J
|
|
|
|
invoke-static {v0, v1}, Lorg/webrtc/JniCommon;->nativeReleaseRef(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public enabled()Z
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/MediaStreamTrack;->nativeTrack:J
|
|
|
|
invoke-static {v0, v1}, Lorg/webrtc/MediaStreamTrack;->nativeGetEnabled(J)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public id()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/MediaStreamTrack;->nativeTrack:J
|
|
|
|
invoke-static {v0, v1}, Lorg/webrtc/MediaStreamTrack;->nativeGetId(J)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public kind()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/MediaStreamTrack;->nativeTrack:J
|
|
|
|
invoke-static {v0, v1}, Lorg/webrtc/MediaStreamTrack;->nativeGetKind(J)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public setEnabled(Z)Z
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/MediaStreamTrack;->nativeTrack:J
|
|
|
|
invoke-static {v0, v1, p1}, Lorg/webrtc/MediaStreamTrack;->nativeSetEnabled(JZ)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public state()Lorg/webrtc/MediaStreamTrack$State;
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/MediaStreamTrack;->nativeTrack:J
|
|
|
|
invoke-static {v0, v1}, Lorg/webrtc/MediaStreamTrack;->nativeGetState(J)Lorg/webrtc/MediaStreamTrack$State;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|