jimu-decompiled/sources/com/baidu/cloud/videocache/ad.java
2025-05-13 19:24:51 +02:00

25 lines
580 B
Java

package com.baidu.cloud.videocache;
import android.content.Context;
import java.io.File;
import java.util.Locale;
/* loaded from: classes.dex */
public class ad {
public static int a(String str) {
String b = b(str);
if (b.endsWith(".m3u8")) {
return 1;
}
return b.endsWith(".mpd") ? 2 : 0;
}
public static File a(Context context) {
return new File(context.getExternalCacheDir(), "video-cache");
}
public static String b(String str) {
return str == null ? "" : str.toLowerCase(Locale.US);
}
}