Show / Hide Table of Contents

Class VideoTestPatternSource

Inheritance
System.Object
VideoTestPatternSource
Implements
SIPSorceryMedia.Abstractions.IVideoSource
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.Media
Assembly: SIPSorcery.dll
Syntax
public class VideoTestPatternSource : IVideoSource, IDisposable

Constructors

| Improve this Doc View Source

VideoTestPatternSource(IVideoEncoder)

Declaration
public VideoTestPatternSource(IVideoEncoder encoder = null)
Parameters
Type Name Description
SIPSorceryMedia.Abstractions.IVideoEncoder encoder

Fields

| Improve this Doc View Source

logger

Declaration
public static ILogger logger
Field Value
Type Description
Microsoft.Extensions.Logging.ILogger
| Improve this Doc View Source

SupportedFormats

Declaration
public static readonly List<VideoFormat> SupportedFormats
Field Value
Type Description
System.Collections.Generic.List<SIPSorceryMedia.Abstractions.VideoFormat>
| Improve this Doc View Source

TEST_PATTERN_HEIGHT

Declaration
public const int TEST_PATTERN_HEIGHT = 480
Field Value
Type Description
System.Int32
| Improve this Doc View Source

TEST_PATTERN_RESOURCE_PATH

Declaration
public const string TEST_PATTERN_RESOURCE_PATH = "SIPSorcery.media.testpattern.i420"
Field Value
Type Description
System.String
| Improve this Doc View Source

TEST_PATTERN_WIDTH

Declaration
public const int TEST_PATTERN_WIDTH = 640
Field Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

CloseVideo()

Declaration
public Task CloseVideo()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

ExternalVideoSourceRawSample(UInt32, Int32, Int32, Byte[], VideoPixelFormatsEnum)

Declaration
public void ExternalVideoSourceRawSample(uint durationMilliseconds, int width, int height, byte[] sample, VideoPixelFormatsEnum pixelFormat)
Parameters
Type Name Description
System.UInt32 durationMilliseconds
System.Int32 width
System.Int32 height
System.Byte[] sample
SIPSorceryMedia.Abstractions.VideoPixelFormatsEnum pixelFormat
| Improve this Doc View Source

ExternalVideoSourceRawSampleFaster(UInt32, RawImage)

Declaration
public void ExternalVideoSourceRawSampleFaster(uint durationMilliseconds, RawImage rawImage)
Parameters
Type Name Description
System.UInt32 durationMilliseconds
SIPSorceryMedia.Abstractions.RawImage rawImage
| Improve this Doc View Source

ForceKeyFrame()

Declaration
public void ForceKeyFrame()
| Improve this Doc View Source

GetVideoSinkFormats()

Declaration
public List<VideoFormat> GetVideoSinkFormats()
Returns
Type Description
System.Collections.Generic.List<SIPSorceryMedia.Abstractions.VideoFormat>
| Improve this Doc View Source

GetVideoSourceFormats()

Declaration
public List<VideoFormat> GetVideoSourceFormats()
Returns
Type Description
System.Collections.Generic.List<SIPSorceryMedia.Abstractions.VideoFormat>
| Improve this Doc View Source

HasEncodedVideoSubscribers()

Declaration
public bool HasEncodedVideoSubscribers()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

InitialiseVideoSourceDevice()

Declaration
public Task<bool> InitialiseVideoSourceDevice()
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>
| Improve this Doc View Source

IsVideoSourcePaused()

Declaration
public bool IsVideoSourcePaused()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

PauseVideo()

Declaration
public Task PauseVideo()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

RestrictFormats(Func<VideoFormat, Boolean>)

Declaration
public void RestrictFormats(Func<VideoFormat, bool> filter)
Parameters
Type Name Description
System.Func<SIPSorceryMedia.Abstractions.VideoFormat, System.Boolean> filter
| Improve this Doc View Source

ResumeVideo()

Declaration
public Task ResumeVideo()
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

SetFrameRate(Int32)

Declaration
public void SetFrameRate(int framesPerSecond)
Parameters
Type Name Description
System.Int32 framesPerSecond
| Improve this Doc View Source

SetMaxFrameRate(Boolean)

If this gets set the frames will be generated in a loop with no pause. Ideally this would only ever be done in load test scenarios.

Declaration
public void SetMaxFrameRate(bool isMaxFrameRate)
Parameters
Type Name Description
System.Boolean isMaxFrameRate
| Improve this Doc View Source

SetVideoSinkFormat(VideoFormat)

Declaration
public void SetVideoSinkFormat(VideoFormat videoFormat)
Parameters
Type Name Description
SIPSorceryMedia.Abstractions.VideoFormat videoFormat
| Improve this Doc View Source

SetVideoSourceFormat(VideoFormat)

Declaration
public void SetVideoSourceFormat(VideoFormat videoFormat)
Parameters
Type Name Description
SIPSorceryMedia.Abstractions.VideoFormat videoFormat
| Improve this Doc View Source

StampI420Buffer(Byte[], Int32, Int32, Int32)

TODO: Add something better for a dynamic stamp on an I420 buffer. This is useful to provide a visual indication to the receiver that the video stream has not stalled.

Declaration
public static void StampI420Buffer(byte[] i420Buffer, int width, int height, int frameNumber)
Parameters
Type Name Description
System.Byte[] i420Buffer
System.Int32 width
System.Int32 height
System.Int32 frameNumber
| Improve this Doc View Source

StartVideo()

Declaration
public Task StartVideo()
Returns
Type Description
System.Threading.Tasks.Task

Events

| Improve this Doc View Source

OnVideoSourceEncodedSample

If a video encoder has been set then this event contains the encoded video samples.

Declaration
public event EncodedSampleDelegate OnVideoSourceEncodedSample
Event Type
Type Description
SIPSorceryMedia.Abstractions.EncodedSampleDelegate
| Improve this Doc View Source

OnVideoSourceError

Declaration
public event SourceErrorDelegate OnVideoSourceError
Event Type
Type Description
SIPSorceryMedia.Abstractions.SourceErrorDelegate
| Improve this Doc View Source

OnVideoSourceRawSample

Unencoded test pattern samples.

Declaration
public event RawVideoSampleDelegate OnVideoSourceRawSample
Event Type
Type Description
SIPSorceryMedia.Abstractions.RawVideoSampleDelegate
| Improve this Doc View Source

OnVideoSourceRawSampleFaster

Declaration
public event RawVideoSampleFasterDelegate OnVideoSourceRawSampleFaster
Event Type
Type Description
SIPSorceryMedia.Abstractions.RawVideoSampleFasterDelegate

Implements

SIPSorceryMedia.Abstractions.IVideoSource
System.IDisposable

Extension Methods

JSONWriter.ToJson(Object)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX