C# Class iSpyApplication.Sources.Video.FfmpegStream

Inheritance: IVideoSource, IAudioSource, ISupportsAudio, IDisposable
Exibir arquivo Open project: ispysoftware/iSpy Class Usage Examples

Public Properties

Property Type Description
AnalyzeDuration int
Cookies string
Duration long
Headers string
OutAudio IAudioSource
PlaybackRate double
RTSPMode int
SampleChannel NAudio.Wave.SampleProviders.SampleChannel
Seekable bool
Timeout int
UserAgent string

Public Methods

Method Description
Dispose ( ) : void
FfmpegStream ( ) : System

Initializes a new instance of the FfmpegStream class.

FfmpegStream ( string source ) : System

Initializes a new instance of the FfmpegStream class.

ProcessAudio ( byte data ) : void
SampleChannelPreVolumeMeter ( object sender, NAudio.Wave.SampleProviders.StreamVolumeEventArgs e ) : void
SignalToStop ( ) : void

Calls Stop

Start ( ) : void

Start video source.

Starts video source and return execution to caller. Video source object creates background thread and notifies about new frames with the help of NewFrame event.

Stop ( ) : void

Stop video source.

WaitForStop ( ) : void

Calls Stop

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
EventManager ( ) : void
FfmpegListener ( ) : void
ShutDown ( string errmsg ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

FfmpegStream() public method

Initializes a new instance of the FfmpegStream class.
public FfmpegStream ( ) : System
return System

FfmpegStream() public method

Initializes a new instance of the FfmpegStream class.
public FfmpegStream ( string source ) : System
source string URL, which provides video stream.
return System

ProcessAudio() public method

public ProcessAudio ( byte data ) : void
data byte
return void

SampleChannelPreVolumeMeter() public method

public SampleChannelPreVolumeMeter ( object sender, NAudio.Wave.SampleProviders.StreamVolumeEventArgs e ) : void
sender object
e NAudio.Wave.SampleProviders.StreamVolumeEventArgs
return void

SignalToStop() public method

Calls Stop
public SignalToStop ( ) : void
return void

Start() public method

Start video source.
Starts video source and return execution to caller. Video source object creates background thread and notifies about new frames with the help of NewFrame event.
Video source is not specified.
public Start ( ) : void
return void

Stop() public method

Stop video source.
public Stop ( ) : void
return void

WaitForStop() public method

Calls Stop
public WaitForStop ( ) : void
return void

Property Details

AnalyzeDuration public_oe property

public int AnalyzeDuration
return int

Cookies public_oe property

public string Cookies
return string

Duration public_oe property

public long Duration
return long

Headers public_oe property

public string Headers
return string

OutAudio public_oe property

public IAudioSource OutAudio
return IAudioSource

PlaybackRate public_oe property

public double PlaybackRate
return double

RTSPMode public_oe property

public int RTSPMode
return int

SampleChannel public_oe property

public SampleChannel,NAudio.Wave.SampleProviders SampleChannel
return NAudio.Wave.SampleProviders.SampleChannel

Seekable public_oe property

public bool Seekable
return bool

Timeout public_oe property

public int Timeout
return int

UserAgent public_oe property

public string UserAgent
return string