.class public Lcom/mtv/services/MediaPlayerService;
.super Landroid/app/Service;


# static fields
.field private static a:Ltv/danmaku/ijk/media/player/IMediaPlayer;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Landroid/app/Service;-><init>()V

    return-void
.end method

.method public static a()V
    .locals 2

    const/4 v1, 0x0

    sget-object v0, Lcom/mtv/services/MediaPlayerService;->a:Ltv/danmaku/ijk/media/player/IMediaPlayer;

    if-eqz v0, :cond_1

    sget-object v0, Lcom/mtv/services/MediaPlayerService;->a:Ltv/danmaku/ijk/media/player/IMediaPlayer;

    if-eqz v0, :cond_1

    sget-object v0, Lcom/mtv/services/MediaPlayerService;->a:Ltv/danmaku/ijk/media/player/IMediaPlayer;

    invoke-interface {v0}, Ltv/danmaku/ijk/media/player/IMediaPlayer;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_0

    sget-object v0, Lcom/mtv/services/MediaPlayerService;->a:Ltv/danmaku/ijk/media/player/IMediaPlayer;

    invoke-interface {v0}, Ltv/danmaku/ijk/media/player/IMediaPlayer;->stop()V

    :cond_0
    sget-object v0, Lcom/mtv/services/MediaPlayerService;->a:Ltv/danmaku/ijk/media/player/IMediaPlayer;

    invoke-interface {v0}, Ltv/danmaku/ijk/media/player/IMediaPlayer;->release()V

    sput-object v1, Lcom/mtv/services/MediaPlayerService;->a:Ltv/danmaku/ijk/media/player/IMediaPlayer;

    :cond_1
    sput-object v1, Lcom/mtv/services/MediaPlayerService;->a:Ltv/danmaku/ijk/media/player/IMediaPlayer;

    return-void
.end method

.method public static a(Landroid/content/Context;)V
    .locals 2

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/mtv/services/MediaPlayerService;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    return-void
.end method

.method public static b()Ltv/danmaku/ijk/media/player/IMediaPlayer;
    .locals 1

    sget-object v0, Lcom/mtv/services/MediaPlayerService;->a:Ltv/danmaku/ijk/media/player/IMediaPlayer;

    return-object v0
.end method


# virtual methods
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
    .locals 1

    const/4 v0, 0x0

    return-object v0
.end method
