CaptureSourceInterface.smali
.class public abstract Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation runtime Lcom/tencent/liteav/base/annotations/JNINamespace;
value = "liteav::video"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureSourceListener;,
Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;,
Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$SourceType;
}
.end annotation
# static fields
.field private static final TAG:Ljava/lang/String; = "CaptureSourceInterface"
# direct methods
.method public constructor <init>()V
.registers 1
.line 26
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static create(Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$SourceType;Lcom/tencent/liteav/videobase/videobase/IVideoReporter;Landroid/os/Handler;)Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface;
.registers 6
const/4 v0, 0x0
if-eqz p2, :cond_36
.line 35
invoke-virtual {p2}, Landroid/os/Handler;->getLooper()Landroid/os/Looper;
move-result-object v1
if-nez v1, :cond_a
goto :goto_36
.line 39
:cond_a
invoke-virtual {p2}, Landroid/os/Handler;->getLooper()Landroid/os/Looper;
move-result-object p2
.line 40
invoke-static {}, Lcom/tencent/liteav/base/ContextUtils;->getApplicationContext()Landroid/content/Context;
move-result-object v1
.line 41
sget-object v2, Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$1;->a:[I
invoke-virtual {p0}, Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$SourceType;->ordinal()I
move-result p0
aget p0, v2, p0
const/4 v2, 0x1
if-eq p0, v2, :cond_30
const/4 v2, 0x2
if-eq p0, v2, :cond_2a
const/4 v1, 0x3
if-eq p0, v1, :cond_24
return-object v0
.line 47
:cond_24
new-instance p0, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;
invoke-direct {p0, p2, p1}, Lcom/tencent/liteav/videoproducer/capture/VirtualCamera;-><init>(Landroid/os/Looper;Lcom/tencent/liteav/videobase/videobase/IVideoReporter;)V
return-object p0
.line 45
:cond_2a
new-instance p0, Lcom/tencent/liteav/videoproducer/capture/ScreenCapturer;
invoke-direct {p0, v1, p2, p1}, Lcom/tencent/liteav/videoproducer/capture/ScreenCapturer;-><init>(Landroid/content/Context;Landroid/os/Looper;Lcom/tencent/liteav/videobase/videobase/IVideoReporter;)V
return-object p0
.line 43
:cond_30
new-instance p0, Lcom/tencent/liteav/videoproducer/capture/t;
invoke-direct {p0, p1, p2}, Lcom/tencent/liteav/videoproducer/capture/t;-><init>(Lcom/tencent/liteav/videobase/videobase/IVideoReporter;Landroid/os/Looper;)V
return-object p0
.line 36
:cond_36
:goto_36
invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
const-string p1, "create capture source instance with invalid handler "
invoke-virtual {p1, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
const-string p1, "CaptureSourceInterface"
invoke-static {p1, p0}, Lcom/tencent/liteav/base/util/LiteavLog;->e(Ljava/lang/String;Ljava/lang/String;)V
return-object v0
.end method
# virtual methods
.method public abstract pause()V
.end method
.method public abstract resume()V
.end method
.method public abstract setCaptureCloudConfig(Lcom/tencent/liteav/videoproducer/capture/CaptureCloudConfig;)V
.end method
.method public abstract start(Ljava/lang/Object;Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureSourceListener;)V
.end method
.method public abstract stop()V
.end method
.method public abstract updateParams(Lcom/tencent/liteav/videoproducer/capture/CaptureSourceInterface$CaptureParams;)V
.end method