ICatchPancamConfig class

  1. package com.icatchtek.pancam.customer;
  2. public class ICatchPancamConfig extends java.lang.Object {
  3. ...
  4. }

Public methods

getInstance

  1. public static ICatchPancamConfig getInstance()

get ICatch pancamConfig instance.
Returns:

  • ICatchPancamConfig instance.

setVideoDecoder

  1. public void setVideoDecoder(ICatchIStreamVideoDecoder videoDecoder)
  2. throws com.icatchtek.reliant.customer.exception.IchNotSupportedException

set video decoder
Parameters:

  • videoDecoder - video decoder in ICatchIStreamVideoDecoder

Throws:

  • com.icatchtek.reliant.customer.exception.IchNotSupportedException

setAudioDecoder

  1. public void setAudioDecoder(ICatchIStreamAudioDecoder audioDecoder)
  2. throws com.icatchtek.reliant.customer.exception.IchNotSupportedException

set audio decoder
Parameters:

  • audioDecoder - audio decoder in ICatchIStreamVideoDecoder

Throws:

  • com.icatchtek.reliant.customer.exception.IchNotSupportedException

setPreviewCacheParam

  1. public boolean setPreviewCacheParam(int cacheTimeInMs,
  2. 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

  1. public int getPreviewCacheTime()

Get preview cache time
Returns:

  • time of preview cache, unit MS


setSoftwareDecoder

  1. public boolean setSoftwareDecoder(boolean softwareDecoder)

enable software decoder
Parameters:

  • softwareDecoder - true: enable, false: disable

Returns:

  • Setting Success or Failed


setOutputCodec

  1. public boolean setOutputCodec(int codec,
  2. 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

  1. public boolean enableDumpTransportStream(boolean videoStream,
  2. java.lang.String filePath)
  3. throws com.icatchtek.reliant.customer.exception.IchNoSuchPathException,
  4. 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

  1. 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

  1. 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

  1. 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

  1. public void setExtHeadCheck(boolean enable)

Enable External Header check in Live555 streaming
Parameters:

  • enable - true: enable, false: disable.

getExtHeadCheck

  1. public boolean getExtHeadCheck()

Get status of External Header check in Live555 streaming
Returns:

  • Setting Success or Failed.