Class StreamAcceptFilter

java.lang.Object
io.antmedia.filter.StreamAcceptFilter
All Implemented Interfaces:
Aware, ApplicationContextAware

public class StreamAcceptFilter extends Object implements ApplicationContextAware
  • Field Details

    • appSettings

      private AppSettings appSettings
    • streamId

      private String 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

      public void setApplicationContext(ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface ApplicationContextAware
    • getAppSettings

      public AppSettings getAppSettings()
    • getMaxFps

      public int getMaxFps()
    • getMaxResolution

      public int getMaxResolution()
    • getMaxBitrate

      public int getMaxBitrate()