Interface IVideoStreamCaptureSource
- Namespace
- CapCognition.Net.CaptureSources.VideoStream
- Assembly
- CapCognition.Net.dll
public interface IVideoStreamCaptureSource : IVideoCaptureSource, ICaptureSource, IDisposable
- Inherited Members
- Extension Methods
Properties
AudioSampleRate
Returns the audio sample rate Note: only filled if the audio stream is enabled
int? AudioSampleRate { get; }
Property Value
- int?
IsHardwareDecodingEnabled
Returns true when this stream is currently using hardware video decoding.
bool IsHardwareDecodingEnabled { get; }
Property Value
NoOfAudioChannels
Returns the number of audio channels Note: only filled if the audio stream is enabled
int? NoOfAudioChannels { get; }
Property Value
- int?
ResultingFrameSize
Returns the frame size in pixels of the video stream after resizing
Size? ResultingFrameSize { get; }
Property Value
- Size?
SourceFrameSize
Returns the frame size in pixels of the video stream source
Size? SourceFrameSize { get; }
Property Value
- Size?
UsedAudioCodecName
Returns the name of the audio codec used for encoding the audio stream Note: only filled if the audio stream is enabled
string? UsedAudioCodecName { get; }
Property Value
UsedHardwareDecoderDeviceType
Returns the hardware backend used by this stream, or null when CPU decoding is active.
AVHWDeviceType? UsedHardwareDecoderDeviceType { get; }
Property Value
- AVHWDeviceType?
UsedVideoCodecName
returns the name of the video codec used for encoding the video stream
string? UsedVideoCodecName { get; }
Property Value
Events
AudioAvailableEvt
Raised when a new audio packet is available Note: only raised if the audio stream is enabled
event Action<short[]>? AudioAvailableEvt
Event Type
BitmapAvailableEvt
Raised when a new bitmap is available Note: The bitmap must be modified. If you need to modify it, copy it first. For performance reasons, the bitmap is not disposed by the source. You must dispose it yourself or let the garbage collector doing its job. Because the bitmap is not disposed, take care when retrieving many bitmaps over a long time. It can lead to high memory usage without a proper dispose handling.
event Action<SKBitmap>? BitmapAvailableEvt
Event Type
RawAudioPacketAvailableEvt
Raised when a new raw audio packet is available Note: only raised if the audio stream is enabled The packet and its native buffers are valid only for the duration of the callback. Never retain or modify it. Create an FFmpeg packet reference or clone inside the callback if it is needed later.
event Action<AVPacket>? RawAudioPacketAvailableEvt
Event Type
- Action<AVPacket>
RawVideoPacketAvailableEvt
Raised when a new raw video packet is available The packet and its native buffers are valid only for the duration of the callback. Never retain or modify it. Create an FFmpeg packet reference or clone inside the callback if it is needed later.
event Action<AVPacket>? RawVideoPacketAvailableEvt
Event Type
- Action<AVPacket>
StreamStartedEvt
event Action<VideoStreamCaptureSourceInfo> StreamStartedEvt
Event Type
StreamStoppedEvt
event Action StreamStoppedEvt