package com.bytedance.ies.xelement.defaultimpl.player.impl.plugin.mediasession.session;

import X.0Cd;
import X.0Ci;
import X.M12;
import X.S8D;
import X.S8E;
import android.content.Intent;
import android.os.IBinder;
import android.support.v4.media.MediaBrowserCompat;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
import androidx.media.MediaBrowserServiceCompat;
import com.bytedance.covode.number.Covode;
import com.bytedance.helios.sdk.utils.ServiceLifecycle;
import java.util.List;

public class MediaSessionService extends MediaBrowserServiceCompat {
    public static final S8D LJFF = new S8D((byte) 0);

    static {
        Covode.recordClassIndex(32367);
    }

    public final 0Cd LIZ(String str) {
        M12.LIZ(str);
        return null;
    }

    public void onDestroy() {
        MediaSessionService.super.onDestroy();
    }

    public IBinder onBind(Intent intent) {
        return new S8E(this);
    }

    public boolean onUnbind(Intent intent) {
        return MediaSessionService.super.onUnbind(intent);
    }

    public final void LIZ(String str, 0Ci<List<MediaBrowserCompat.MediaItem>> r2) {
        M12.LIZ(str, r2);
        r2.LIZJ();
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [android.app.Service, com.bytedance.ies.xelement.defaultimpl.player.impl.plugin.mediasession.session.MediaSessionService, androidx.media.MediaBrowserServiceCompat] */
    public int onStartCommand(Intent intent, int i, int i2) {
        ServiceLifecycle.onStartCommand(this, intent, i, i2);
        Intent intent2 = new Intent("player.plugin.mediasession.common.intent.filter.AWE_MEDIA_SESSION_BROADCAST");
        intent2.putExtra("EXTRA_MEDIA_BUTTON_DATA", intent);
        LocalBroadcastManager.getInstance(this).sendBroadcast(intent2);
        return MediaSessionService.super.onStartCommand(intent, i, i2);
    }
}
