de.clab.osami.conferencing.vlc.processor
Class VlcVerificator
java.lang.Object
de.clab.osami.conferencing.vlc.processor.VlcVerificator
- All Implemented Interfaces:
- IVerificator
public class VlcVerificator
- extends java.lang.Object
- implements IVerificator
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VlcVerificator
public VlcVerificator()
verifyAudioBitrate
public java.lang.String verifyAudioBitrate(int audioBitRate)
- Specified by:
verifyAudioBitrate
in interface IVerificator
- Parameters:
audioBitRate
- value that is going to be verified
- Returns:
- null if the audioBitRate is between [8,512]
otherwise a failure message
verifyAudioChannelSize
public java.lang.String verifyAudioChannelSize(int audioChannelSize)
- Specified by:
verifyAudioChannelSize
in interface IVerificator
- Parameters:
audioChannelSize
- value that is going to be verified
- Returns:
- null if the audioChannelSize is between [1,10]
otherwise a failure message
verifyAudioCodec
public java.lang.String verifyAudioCodec(java.lang.String audioCodec)
- Specified by:
verifyAudioCodec
in interface IVerificator
- Parameters:
audioCodec
- value that is going to be verified
- Returns:
- null if the audioCodec is one of the following
{"mpga","mp3","mp4a","a52","vorb","flac","spx","s16l","wma2"}
otherwise a failure message
verifyAudioCaching
public java.lang.String verifyAudioCaching(int audioCaching)
- Specified by:
verifyAudioCaching
in interface IVerificator
- Parameters:
audioCaching
- value that is going to be verified
- Returns:
- null if the audioCaching is equal to or greater than 0
otherwise a failure message
verifyAudioDevice
public java.lang.String verifyAudioDevice(java.lang.String audioDevice)
- Specified by:
verifyAudioDevice
in interface IVerificator
- Parameters:
audioDevice
- value that is going to be verified
- Returns:
- TODO: comment
verifyAudioProtocol
public java.lang.String verifyAudioProtocol(java.lang.String audioProtocol)
- Specified by:
verifyAudioProtocol
in interface IVerificator
- Parameters:
audioProtocol
- value that is going to be verified
- Returns:
- TODO: comment
verifyAudioSampleRate
public java.lang.String verifyAudioSampleRate(int audioSampleRate)
- Specified by:
verifyAudioSampleRate
in interface IVerificator
- Parameters:
audioSampleRate
- value that is going to be verified
- Returns:
- null if the audioSampleRate is one of the following
{8000,11025,22050,44100,48000}
otherwise a failure message
verifyStreamCaching
public java.lang.String verifyStreamCaching(int streamCaching)
- Specified by:
verifyStreamCaching
in interface IVerificator
- Parameters:
streamCaching
- value that is going to be verified
- Returns:
- null if the streamCaching is equal to or greater than 0
otherwise a failure message
verifyStreamIp
public java.lang.String verifyStreamIp(java.lang.String streamIp)
- Specified by:
verifyStreamIp
in interface IVerificator
- Parameters:
streamIp
- value that is going to be verified
- Returns:
- null if the streamIp contains 4 integers delimited by a dot,
each of which is between [0,255]
otherwise a failure message
verifyStreamLocalPort
public java.lang.String verifyStreamLocalPort(int streamLocalPort)
- Specified by:
verifyStreamLocalPort
in interface IVerificator
- Parameters:
streamLocalPort
- value that is going to be verified
- Returns:
- null if the streamLocalPort is between [0,65535]
otherwise a failure message
verifyStreamProtocol
public java.lang.String verifyStreamProtocol(java.lang.String streamProtocol)
- Specified by:
verifyStreamProtocol
in interface IVerificator
- Parameters:
streamProtocol
- value that is going to be verified
- Returns:
- null if the streamProtocol is RTP
otherwise a failure message
verifyStreamTargetPort
public java.lang.String verifyStreamTargetPort(int streamTargetPort)
- Specified by:
verifyStreamTargetPort
in interface IVerificator
- Parameters:
streamTargetPort
- value that is going to be verified
- Returns:
- null if the streamTargetPort is between [0,65535]
otherwise a failure message
verifyVideoBitrate
public java.lang.String verifyVideoBitrate(int videoBitrate)
- Specified by:
verifyVideoBitrate
in interface IVerificator
- Parameters:
videoBitrate
- value that is going to be verified
- Returns:
- null if the videoBitrate is between [0,32768]
otherwise a failure message
verifyVideoCaching
public java.lang.String verifyVideoCaching(int videoCaching)
- Specified by:
verifyVideoCaching
in interface IVerificator
- Parameters:
videoCaching
- value that is going to be verified
- Returns:
- null if the videoCaching is equal to or greater than 0
otherwise a failure message
verifyVideoCodec
public java.lang.String verifyVideoCodec(java.lang.String videoCodec)
- Specified by:
verifyVideoCodec
in interface IVerificator
- Parameters:
videoCodec
- value that is going to be verified
- Returns:
- null if the videoCodec is one of the following
{"mp1v","mp2v","mp4v","DIV1","DIV2","DIV3","H263",
"h264","VP80","WMV1","WMV2","MJPG","theo","drac"}
otherwise a failure message
verifyVideoDevice
public java.lang.String verifyVideoDevice(java.lang.String videoDevice)
- Specified by:
verifyVideoDevice
in interface IVerificator
- Parameters:
videoDevice
- value that is going to be verified
- Returns:
- TODO: comment
verifyVideoFrameRate
public java.lang.String verifyVideoFrameRate(float videoFrameRate)
- Specified by:
verifyVideoFrameRate
in interface IVerificator
- Parameters:
videoFrameRate
- value that is going to be verified
- Returns:
- null if the videoFrameRate is between [0.00,99.99]
otherwise a failure message
verifyVideoProtocol
public java.lang.String verifyVideoProtocol(java.lang.String videoProtocol)
- Specified by:
verifyVideoProtocol
in interface IVerificator
- Parameters:
videoProtocol
- value which is going to be verified
- Returns:
- TODO: comment
verifyVideoScale
public java.lang.String verifyVideoScale(float videoScale)
- Specified by:
verifyVideoScale
in interface IVerificator
- Parameters:
videoScale
- value that is going to be verified
- Returns:
- null if the videoScale is one of the following:
{0.25,0.5,0.75,1.0,1.25,1.5,1.75,2.0}
otherwise a failure message
verifyVideoSize
public java.lang.String verifyVideoSize(java.awt.Dimension videoSize)
- Specified by:
verifyVideoSize
in interface IVerificator
- Parameters:
videoSize
- value that is going to be verified
- Returns:
- null if the videoSize is under the current screen resolution
otherwise a failure message
verifyConfig
public java.lang.String verifyConfig(IConfiguration configuration)
- Specified by:
verifyConfig
in interface IVerificator