Class MediaContainerHints
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.container.MediaContainerHints
-
public class MediaContainerHints extends java.lang.ObjectOptional meta-information about a stream which may narrow down the list of possible containers.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringfileExtensionFile extension, null if not known.java.lang.StringmimeTypeMime type, null if not known.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MediaContainerHintsfrom(java.lang.String mimeType, java.lang.String fileExtension)booleanpresent()
-
-
-
Method Detail
-
present
public boolean present()
- Returns:
trueif any hint parameters have a value.
-
from
public static MediaContainerHints from(java.lang.String mimeType, java.lang.String fileExtension)
- Parameters:
mimeType- Mime typefileExtension- File extension- Returns:
- Instance of hints object with the specified parameters
-
-