• Articles
  • Api Documentation
Search Results for

    Show / Hide Table of Contents
    • CameraCapture
      • VideoDeviceFormat
      • VideoSourceSettings
      • WindowsCameraCapture
    • SipLib.Video.Windows
      • FrameBitmapReadyDelegate
      • FrameReadyDelegate
      • IVideoCapture
      • StaticImageCapture
      • VideoDeviceEnumerator
      • VideoReceiver
      • VideoSender
      • VideoUtils

    Class VideoSender

    Class for sending video to an endpoint using an RtpChannel. This class can be used to send H264 or VP8 video frames to a remote endpoint using an RtpChannel.

    Inheritance
    object
    VideoSender
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SipLib.Video.Windows
    Assembly: SipLib.Video.Windows.dll
    Syntax
    public class VideoSender

    Constructors

    VideoSender(MediaDescription, RtpChannel)

    Constructor

    Declaration
    public VideoSender(MediaDescription VideoMd, RtpChannel rtpChannel)
    Parameters
    Type Name Description
    MediaDescription VideoMd

    MediaDescription that specifies the negotiated video codec to use to encode video frames.

    RtpChannel rtpChannel

    RtpChannel to use to send encoded video data packets.

    Methods

    Dispose()

    Releases resources held by the encoder.

    Declaration
    public void Dispose()

    SendVideoFrame(int, int, int, byte[], AVPixelFormat)

    Sends a video frame on the RtpChannel by encoding it and packaging it into RTP packets.

    Declaration
    public void SendVideoFrame(int Width, int Height, int fps, byte[] bytes, AVPixelFormat pixelFormat)
    Parameters
    Type Name Description
    int Width

    The width in pixels of the video frame to send.

    int Height

    The height in pixels of the video frame to send.

    int fps

    The number of frames per second of the captured video.

    byte[] bytes

    A byte array containing the raw video data. The format of this array depends on the pixelFormat parameter.

    AVPixelFormat pixelFormat

    The pixel format of the video frame

    Shutdown()

    This method must be called before the RtpChannel has been shut down. After this method is called, shutdown the RtpChannel, then call the Dispose() method.

    Declaration
    public void Shutdown()
    In this article
    Back to top Generated by DocFX