Class NullVideoSink
A video sink that discards frames.
Inheritance
Implements
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class NullVideoSink : VideoSink, IEquatable<NSObject>, INSObjectProtocol, INativeObject, IDisposable, IVideoInput, IMediaInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement
Constructors
NullVideoSink()
Initializes a new NullVideoSink.
Declaration
public NullVideoSink()
NullVideoSink(VideoFormat)
Initializes a new NullVideoSink.
Declaration
public NullVideoSink(VideoFormat inputFormat)
Parameters
Type | Name | Description |
---|---|---|
VideoFormat | inputFormat | The input format. |
Properties
FrameCount
Gets the current frame count.
Declaration
public long FrameCount { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
OutputRtpStreamId
Gets or sets the output RTP stream identifier. If the output RTP stream identifier is null (unset), then getting this property returns the InputRtpStreamId.
Declaration
public string OutputRtpStreamId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OutputSynchronizationSource
Gets or sets the output synchronization source. If the output synchronization source is -1 (unset), then getting this property returns the InputSynchronizationSource.
Declaration
public long OutputSynchronizationSource { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()
Overrides
DoProcessFrame(VideoFrame, VideoBuffer)
Processes a frame.
Declaration
protected override void DoProcessFrame(VideoFrame frame, VideoBuffer inputBuffer)
Parameters
Type | Name | Description |
---|---|---|
VideoFrame | frame | The frame. |
VideoBuffer | inputBuffer | The input buffer. |
Overrides
ProcessControlFrame(MediaControlFrame)
Processes a control frame by raising it.
Declaration
public virtual void ProcessControlFrame(MediaControlFrame controlFrame)
Parameters
Type | Name | Description |
---|---|---|
MediaControlFrame | controlFrame | The control frame. |
ProcessControlFrames(MediaControlFrame[])
Processes control frames by raising them.
Declaration
public virtual void ProcessControlFrames(MediaControlFrame[] controlFrames)
Parameters
Type | Name | Description |
---|---|---|
MediaControlFrame[] | controlFrames | The control frames. |
ProcessedFrames(Int64)
Creates a future that resolves when the specified number of frames have been processed.
Declaration
public Future<object> ProcessedFrames(long count)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | count |
Returns
Type | Description |
---|---|
Future<System.Object> |
UpdateMaxInputBitrate(Int32)
Sets the maximum allowed input bitrate, in kbps. A value of -1 indicates unset (no maximum).
Declaration
public virtual void UpdateMaxInputBitrate(int maxInputBitrate)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxInputBitrate | The maximum allowed input bitrate, in kbps. |
UpdateMaxInputEncoding(EncodingInfo)
Sets the maximum allowed input encoding. A value of null indicates unset (no maximum).
Declaration
public virtual void UpdateMaxInputEncoding(EncodingInfo maxInputEncoding)
Parameters
Type | Name | Description |
---|---|---|
EncodingInfo | maxInputEncoding | The maximum allowed input encoding. |
UpdateMaxInputFrameRate(Double)
Sets the maximum allowed input frame-rate. A value of -1 indicates unset (no maximum).
Declaration
public virtual void UpdateMaxInputFrameRate(double maxInputFrameRate)
Parameters
Type | Name | Description |
---|---|---|
System.Double | maxInputFrameRate | The maximum allowed input frame-rate. |
UpdateMaxInputScale(Double)
Sets the maximum allowed input scale. A value of -1 indicates unset (no maximum).
Declaration
public virtual void UpdateMaxInputScale(double maxInputScale)
Parameters
Type | Name | Description |
---|---|---|
System.Double | maxInputScale | The maximum allowed input scale. |
UpdateMaxInputSize(Size)
Sets the maximum allowed input size. A value of -1 indicates unset (no maximum).
Declaration
public virtual void UpdateMaxInputSize(Size maxInputSize)
Parameters
Type | Name | Description |
---|---|---|
Size | maxInputSize | The maximum allowed input size. |
UpdateMinInputBitrate(Int32)
Sets the minimum allowed input bitrate, in kbps. A value of -1 indicates unset (no minimum).
Declaration
public virtual void UpdateMinInputBitrate(int minInputBitrate)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | minInputBitrate | The minimum allowed input bitrate, in kbps. |
UpdateMinInputEncoding(EncodingInfo)
Sets the minimum allowed input encoding. A value of null indicates unset (no minimum).
Declaration
public virtual void UpdateMinInputEncoding(EncodingInfo minInputEncoding)
Parameters
Type | Name | Description |
---|---|---|
EncodingInfo | minInputEncoding | The minimum allowed input encoding. |
UpdateMinInputFrameRate(Double)
Sets the minimum allowed input frame-rate. A value of -1 indicates unset (no minimum).
Declaration
public virtual void UpdateMinInputFrameRate(double minInputFrameRate)
Parameters
Type | Name | Description |
---|---|---|
System.Double | minInputFrameRate | The minimum allowed input frame-rate. |
UpdateMinInputScale(Double)
Sets the minimum allowed input scale. A value of -1 indicates unset (no minimum).
Declaration
public virtual void UpdateMinInputScale(double minInputScale)
Parameters
Type | Name | Description |
---|---|---|
System.Double | minInputScale | The minimum allowed input scale. |
UpdateMinInputSize(Size)
Sets the minimum allowed input size. A value of -1 indicates unset (no minimum).
Declaration
public virtual void UpdateMinInputSize(Size minInputSize)
Parameters
Type | Name | Description |
---|---|---|
Size | minInputSize | The minimum allowed input size. |
UpdateSystemDelay(Int64)
Sets the system delay in ticks.
Declaration
public virtual void UpdateSystemDelay(long systemDelay)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | systemDelay | The system delay. |
UpdateVideoType(VideoType)
Sets the video type.
Declaration
public void UpdateVideoType(VideoType videoType)
Parameters
Type | Name | Description |
---|---|---|
VideoType | videoType | The video type. |