add opus into judge of audio

pull/166/head
xufuji456 4 years ago
parent b95724d4ed
commit fbfe1cea33
  1. 4
      app/src/main/java/com/frank/ffmpeg/util/FileUtil.kt

@ -25,6 +25,7 @@ object FileUtil {
private const val TYPE_OGG = "ogg" private const val TYPE_OGG = "ogg"
private const val TYPE_AC3 = "ac3" private const val TYPE_AC3 = "ac3"
private const val TYPE_RAW = "pcm" private const val TYPE_RAW = "pcm"
private const val TYPE_OPUS = "opus"
const val TYPE_MP4 = "mp4" const val TYPE_MP4 = "mp4"
private const val TYPE_MKV = "mkv" private const val TYPE_MKV = "mkv"
@ -120,7 +121,8 @@ object FileUtil {
|| path.endsWith(TYPE_WAV) || path.endsWith(TYPE_WAV)
|| path.endsWith(TYPE_OGG) || path.endsWith(TYPE_OGG)
|| path.endsWith(TYPE_AC3) || path.endsWith(TYPE_AC3)
|| path.endsWith(TYPE_RAW)) || path.endsWith(TYPE_RAW)
|| path.endsWith(TYPE_OPUS))
} }
fun isVideo(filePath: String): Boolean { fun isVideo(filePath: String): Boolean {

Loading…
Cancel
Save