Package io.antmedia.filter
Class StreamAcceptFilter
java.lang.Object
io.antmedia.filter.StreamAcceptFilter
- All Implemented Interfaces:
Aware
,ApplicationContextAware
-
Field Summary
Modifier and TypeFieldDescriptionprivate AppSettings
protected static org.slf4j.Logger
private String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkBitrateAccept
(long streamBitrateValue) boolean
checkFPSAccept
(int fps) boolean
checkResolutionAccept
(int width, int height) int
int
int
boolean
isValidStreamParameters
(int width, int height, int fps, int bitrate, String streamId) void
setApplicationContext
(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:
setApplicationContext
in interfaceApplicationContextAware
-
getAppSettings
-
getMaxFps
public int getMaxFps() -
getMaxResolution
public int getMaxResolution() -
getMaxBitrate
public int getMaxBitrate()
-