ICatchPancamConfig class
package com.icatchtek.pancam.customer;public class ICatchPancamConfig extends java.lang.Object {...}
Public methods
getInstance
public static ICatchPancamConfig getInstance()
get ICatch pancamConfig instance.
Returns:
- ICatchPancamConfig instance.
setVideoDecoder
public void setVideoDecoder(ICatchIStreamVideoDecoder videoDecoder)throws com.icatchtek.reliant.customer.exception.IchNotSupportedException
set video decoder
Parameters:
- videoDecoder - video decoder in ICatchIStreamVideoDecoder
Throws:
- com.icatchtek.reliant.customer.exception.IchNotSupportedException
setAudioDecoder
public void setAudioDecoder(ICatchIStreamAudioDecoder audioDecoder)throws com.icatchtek.reliant.customer.exception.IchNotSupportedException
set audio decoder
Parameters:
- audioDecoder - audio decoder in ICatchIStreamVideoDecoder
Throws:
- com.icatchtek.reliant.customer.exception.IchNotSupportedException
setPreviewCacheParam
public boolean setPreviewCacheParam(int cacheTimeInMs,int dropFrameTimeOverMs)
set preview cache params
Parameters:
- cacheTimeInMs - cache time , unit MS
- dropFrameTimeOverMs - time to drop frame, unit MS
Throws:
- Setting Success or Failed
setPreviewCacheParam
public int getPreviewCacheTime()
Get preview cache time
Returns:
- time of preview cache, unit MS
setSoftwareDecoder
public boolean setSoftwareDecoder(boolean softwareDecoder)
enable software decoder
Parameters:
- softwareDecoder - true: enable, false: disable
Returns:
- Setting Success or Failed
setOutputCodec
public boolean setOutputCodec(int codec,int outputCodec)
Set output format codec, If you use the SDK to decode video frames, then you can use this API to set the decoding format, such as from JPEG to RGBA_8888, NV16, I420 .etc.
Parameters:
- codec - codec Currently we only support JPEG only
- outputCodec - one of rgb or yuv format
Returns:
- Setting Success or Failed
enableDumpTransportStream
public boolean enableDumpTransportStream(boolean videoStream,java.lang.String filePath)throws com.icatchtek.reliant.customer.exception.IchNoSuchPathException,com.icatchtek.reliant.customer.exception.IchPermissionDeniedException
Enable dump transport Streaming
Parameters:
- videoStream - true: dump video stream, false: dump audio stream
- filePath - filePath to save streaming
Returns:
- Setting Success or Failed
Throws:
- com.icatchtek.reliant.customer.exception.IchNoSuchPathException - filepath error
- com.icatchtek.reliant.customer.exception.IchPermissionDeniedException - no permission to save file
disableDumpTransportStream
public boolean disableDumpTransportStream(boolean videoStream)
Disable dump transport streaming
Parameters:
- videoStream - true: disable dump video stream, false: disable dump audio stream
Returns:
- Setting Success or Failed
enableRTPOverTCP
public boolean enableRTPOverTCP()
When using the rtsp protocol to obtain audio and video information, Use TCP to transmit rtp packets.
Returns:**
- Returns true on success, otherwise false.
disableRTPOverTCP
public boolean disableRTPOverTCP()
When using the rtsp protocol to obtain audio and video information, Use TCP to transmit rtp packets. This is the default setting when you open the app.
Returns:
- Returns true on success, otherwise false.
setExtHeadCheck
public void setExtHeadCheck(boolean enable)
Enable External Header check in Live555 streaming
Parameters:
- enable - true: enable, false: disable.
getExtHeadCheck
public boolean getExtHeadCheck()
Get status of External Header check in Live555 streaming
Returns:
- Setting Success or Failed.
