CTI32 Class Library

cti.PlayStream Method 

Play a file from over a network. Play as it is downloading.

[Visual Basic]
Public Shared Function PlayStream( _
   ByVal chdev As Integer, _
   ByVal voice_format As VoiceFormat, _
   ByVal StreamHandle As Integer, _
   ByVal digmask As String, _
   ByVal ClearDigitBuffer As Integer, _
   ByVal error_file As String _
) As Integer
[C#]
public static int PlayStream(
   int chdev,
   VoiceFormat voice_format,
   int StreamHandle,
   string digmask,
   int ClearDigitBuffer,
   string error_file
);

Parameters

chdev
Voice channel resource
voice_format
Format of voice file
StreamHandle
Handle from AllocateStream
digmask
Termination digits.
ClearDigitBuffer
1 for clear digit buffer. 0 for don't clear
error_file
This is a full path to a file which speaks of a system error and a technical support number to call. This file must be a separate file and not part of a VAP file.

Return Value

0=success. -1=fail

See Also

cti Class | CTI32NetLib Namespace