Click or drag to resize
StreamFileCommand Class
Plays the given file, allowing playback to be interrupted by the given digits, if any.
If offset is provided then the audio will seek to sample offset before play starts.
Returns 0 if playback completes without a digit being pressed, or the ASCII numerical value of the digit if one was pressed, or -1 on error or if the channel was disconnected.
Remember, the file extension must not be included in the filename.
Inheritance Hierarchy

Namespace: AsterNET.FastAGI.Command
Assembly: AsterNET (in AsterNET.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class StreamFileCommand : AGICommand

The StreamFileCommand type exposes the following members.

Constructors
  NameDescription
Public methodStreamFileCommand(String)
Creates a new StreamFileCommand, streaming from the beginning.
Public methodStreamFileCommand(String, String)
Creates a new StreamFileCommand, streaming from the beginning.
Public methodStreamFileCommand(String, String, Int32)
Creates a new StreamFileCommand, streaming from the given offset.
Top
Methods
  NameDescription
Public methodBuildCommand (Overrides AGICommandBuildCommand.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodEscapeAndQuote (Inherited from AGICommand.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString (Inherited from AGICommand.)
Top
Properties
  NameDescription
Public propertyEscapeDigits
Get/Set the digits that allow the user to interrupt this command.
Public propertyFile
Get/Set the name of the file to stream. The name of the file to stream, must not include extension.
Public propertyOffset
Get/Set the offset samples to skip before streaming.
Top
See Also