C# 클래스 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
상속: IVideoSource, IAudioSource, ISupportsAudio, IDisposable
파일 보기 프로젝트 열기: ispysoftware/iSpy

공개 프로퍼티들

프로퍼티 타입 설명
BytePacket int
OutAudio IAudioSource

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
Free ( ) : void

Free resource.

WorkerThread ( ) : void

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

KinectNetworkStream() 공개 메소드

Initializes a new instance of the KinectNetworkStream class.
public KinectNetworkStream ( ) : System
리턴 System

KinectNetworkStream() 공개 메소드

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

SampleChannelPreVolumeMeter() 공개 메소드

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

SignalToStop() 공개 메소드

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
리턴 void

Start() 공개 메소드

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
리턴 void

Stop() 공개 메소드

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
리턴 void

WaitForStop() 공개 메소드

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

프로퍼티 상세

BytePacket 공개적으로 프로퍼티

public int BytePacket
리턴 int

OutAudio 공개적으로 프로퍼티

public IAudioSource OutAudio
리턴 IAudioSource