public class SoundFileUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
aif |
static String |
au |
static String |
DEFAULT_CALL_RECORDING_FORMAT
The file extension and the format of call recording to be used by
default.
|
static String |
gsm |
static String |
mid |
static String |
mod |
static String |
mp2 |
static String |
mp3 |
static String |
ogg |
static String |
ram |
static String |
wav
Different extension of a sound file
|
static String |
wma |
| Constructor and Description |
|---|
SoundFileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getExtension(File f)
Gets the file extension.
|
static boolean |
isSoundFile(File f)
Checks whether this file is a sound file.
|
static boolean |
isSoundFile(File f,
String[] soundFormats)
Checks whether this file is a sound file.
|
public static final String wav
public static final String mid
public static final String mp2
public static final String mp3
public static final String mod
public static final String ram
public static final String wma
public static final String ogg
public static final String gsm
public static final String aif
public static final String au
public static final String DEFAULT_CALL_RECORDING_FORMAT
public static boolean isSoundFile(File f)
f - File to checkpublic static boolean isSoundFile(File f, String[] soundFormats)
f - File to checksoundFormats - The sound formats to restrict the file name
extension. If soundFormats is null, then every sound format defined by
SoundFileUtils is correct.Copyright © 2022 jitsi.org. All rights reserved.