TRVBufferOptions

Top  Previous  Next

Buffering options for TRVMediaServer.

Unit MRVType;

Syntax

TRVBufferOptions = class(TPersistent);

hmtoggle_arrow1Hierarchy

Description

This is a type of TRVMediaServer.BufferOptions property.

This class has two sets of properties:

properties defining where the server stores temporal data (in memory or files):

oVideo: TRVStreamType – buffering options for video streams (default value = rvstMemory)

oAudio: TRVStreamType – buffering options for audio streams (default value = rvstMemory)

oUserData: TRVStreamType – buffering options for custom data (default value = rvstMemory)

oCmd: TRVStreamType – buffering options for commands (default value = rvstMemory)

oFileData: TRVStreamType – buffering options for files (default value = rvstFile)

properties defining buffer sizes:

o   VideoBufferSize: Cardinal (default value=MAX_CLIENT_BUFFER)

o   AudioBufferSize: Cardinal (default value=MAX_CLIENT_BUFFER)

o   UserDataBufferSize: Cardinal (default value=MAX_CLIENT_BUFFER)

o   CmdBufferSize: Cardinal (default value=MAX_CLIENT_BUFFER)

o   FileDataBufferSize: Cardinal (default value=MAX_FILE_BUFFER)

where

type
  TRVStreamType = (rvstMemory, rvstFile);
const
  BUFFER_SIZE = 4096;
  MAX_CLIENT_BUFFER = BUFFER_SIZE * 30;
  MAX_FILE_BUFFER = BUFFER_SIZE * 100000;