C# Class iSpyApplication.Sources.Video.KinectNetworkStream

iSpyKinect provider stream for video and audio from an iSpyKinect network instance
Main Integration Points: KinectNetworkStream: CameraWindow - OpenVideoSource CameraWindow - Enable CameraWindow - Disable Camera - Plugin Camera - RunPlugin
Inheritance: IVideoSource, IAudioSource, ISupportsAudio, IDisposable
Afficher le fichier Open project: ispysoftware/iSpy

Méthodes publiques

Свойство Type Description
BytePacket int
OutAudio IAudioSource

Méthodes publiques

Méthode Description
Dispose ( ) : void
KinectNetworkStream ( ) : System

Initializes a new instance of the KinectNetworkStream class.

KinectNetworkStream ( string source ) : System

Initializes a new instance of the KinectNetworkStream class.

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

Signal video source to stop its work.

Signals video source to stop its background thread, stop to provide new frames and free resources.

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.

Stops video source aborting its thread.

Since the method aborts background thread, its usage is highly not preferred and should be done only if there are no other options. The correct way of stopping camera is signaling it stop and then waiting for background thread's completion.

WaitForStop ( ) : void

Wait for video source has stopped.

Waits for source stopping after it was signalled to stop using SignalToStop method.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
Free ( ) : void

Free resource.

WorkerThread ( ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

KinectNetworkStream() public méthode

Initializes a new instance of the KinectNetworkStream class.
public KinectNetworkStream ( ) : System
Résultat System

KinectNetworkStream() public méthode

Initializes a new instance of the KinectNetworkStream class.
public KinectNetworkStream ( string source ) : System
source string URL, which provides MJPEG stream.
Résultat System

SampleChannelPreVolumeMeter() public méthode

public SampleChannelPreVolumeMeter ( object sender, NAudio.Wave.SampleProviders.StreamVolumeEventArgs e ) : void
sender object
e NAudio.Wave.SampleProviders.StreamVolumeEventArgs
Résultat void

SignalToStop() public méthode

Signal video source to stop its work.
Signals video source to stop its background thread, stop to provide new frames and free resources.
public SignalToStop ( ) : void
Résultat void

Start() public méthode

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
Résultat void

Stop() public méthode

Stop video source.

Stops video source aborting its thread.

Since the method aborts background thread, its usage is highly not preferred and should be done only if there are no other options. The correct way of stopping camera is signaling it stop and then waiting for background thread's completion.

public Stop ( ) : void
Résultat void

WaitForStop() public méthode

Wait for video source has stopped.
Waits for source stopping after it was signalled to stop using SignalToStop method.
public WaitForStop ( ) : void
Résultat void

Property Details

BytePacket public_oe property

public int BytePacket
Résultat int

OutAudio public_oe property

public IAudioSource OutAudio
Résultat IAudioSource