package com.ifpdos.player.configure;

import com.ifpdos.player.IPlayerConfigure;
import com.ifpdos.player.base.PlatformUtils;

/* JADX INFO: loaded from: classes.dex */
public final class PlayerConfigureFactory {
    public static final PlayerConfigureFactory INSTANCE = new PlayerConfigureFactory();

    private PlayerConfigureFactory() {
    }

    public final IPlayerConfigure getPlayerConfigure() {
        PlatformUtils platformUtils = PlatformUtils.INSTANCE;
        if (platformUtils.is9681()) {
            return new Configure9681();
        }
        if (platformUtils.isG720()) {
            return new ConfigureG720();
        }
        if (platformUtils.is3588V()) {
            return new Configure3588V();
        }
        if (platformUtils.is3588T()) {
            return new Configure3588T();
        }
        if (platformUtils.is982()) {
            return new Configure982();
        }
        if (platformUtils.is1516U()) {
            return new Configure1516U();
        }
        if (platformUtils.is1516()) {
            return new Configure1516();
        }
        if (platformUtils.is9666()) {
            return new Configure9666();
        }
        if (platformUtils.is3576W()) {
            return new Configure3576W();
        }
        if (platformUtils.is9950P()) {
            return new Configure9950();
        }
        if (platformUtils.getForceMediaPlayerIndex() == 4) {
            return new ConfigureDefault();
        }
        throw new IllegalArgumentException("Unsupported platform");
    }
}
