Package io.antmedia.filter
Class StreamAcceptFilter
java.lang.Object
io.antmedia.filter.StreamAcceptFilter
- All Implemented Interfaces:
Aware,ApplicationContextAware
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AppSettingsprotected static org.slf4j.Loggerprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckBitrateAccept(long streamBitrateValue) booleancheckFPSAccept(int fps) booleancheckResolutionAccept(int width, int height) intintintbooleanisValidStreamParameters(int width, int height, int fps, int bitrate, String streamId) voidsetApplicationContext(ApplicationContext applicationContext)
-
Field Details
-
appSettings
-
streamId
-
logger
protected static org.slf4j.Logger logger
-
-
Constructor Details
-
StreamAcceptFilter
public StreamAcceptFilter()
-
-
Method Details
-
isValidStreamParameters
public boolean isValidStreamParameters(int width, int height, int fps, int bitrate, String streamId) -
checkFPSAccept
public boolean checkFPSAccept(int fps) -
checkResolutionAccept
public boolean checkResolutionAccept(int width, int height) -
checkBitrateAccept
public boolean checkBitrateAccept(long streamBitrateValue) -
setApplicationContext
- Specified by:
setApplicationContextin interfaceApplicationContextAware
-
getAppSettings
-
getMaxFps
public int getMaxFps() -
getMaxResolution
public int getMaxResolution() -
getMaxBitrate
public int getMaxBitrate()
-