Gjsify LogoGjsify Logo

Index

Variables

RTSP_DEFAULT_PORT: number

The default RTSP port to connect to.

Functions

  • Free a %NULL-terminated array of credentials returned from gst_rtsp_message_parse_auth_credentials().

    Parameters

    Returns void

  • Create a newly allocated #GstRTSPConnection from url and store it in conn. The connection will not yet attempt to connect to url, use gst_rtsp_connection_connect().

    A copy of url will be made.

    Parameters

    Returns [RTSPResult, RTSPConnection]

  • Create a new #GstRTSPConnection for handling communication on the existing socket socket. The initial_buffer contains zero terminated data already read from socket which should be used before starting to read new data.

    Parameters

    • socket: Gio.Socket

      a #GSocket

    • ip: string

      the IP address of the other end

    • port: number

      the port used by the other end

    • initialBuffer: string

      data already read from fd

    Returns [RTSPResult, RTSPConnection]

  • rtspGenerateDigestAuthResponse(algorithm: string, method: string, realm: string, username: string, password: string, uri: string, nonce: string): string
  • Calculates the digest auth response from the values given by the server and the username and password. See RFC2069 for details.

    Currently only supported algorithm "md5".

    Parameters

    • algorithm: string

      Hash algorithm to use, or %NULL for MD5

    • method: string

      Request method, e.g. PLAY

    • realm: string

      Realm

    • username: string

      Username

    • password: string

      Password

    • uri: string

      Original request URI

    • nonce: string

      Nonce

    Returns string

  • rtspGenerateDigestAuthResponseFromMd5(algorithm: string, method: string, md5: string, uri: string, nonce: string): string
  • Calculates the digest auth response from the values given by the server and the md5sum. See RFC2069 for details.

    This function is useful when the passwords are not stored in clear text, but instead in the same format as the .htdigest file.

    Currently only supported algorithm "md5".

    Parameters

    • algorithm: string

      Hash algorithm to use, or %NULL for MD5

    • method: string

      Request method, e.g. PLAY

    • md5: string

      The md5 sum of username:realm:password

    • uri: string

      Original request URI

    • nonce: string

      Nonce

    Returns string

  • Create a new data #GstRTSPMessage with channel and store the result message in msg. Free with gst_rtsp_message_free().

    Parameters

    • channel: number

      the channel

    Returns [RTSPResult, RTSPMessage]

  • Create a new #GstRTSPMessage with method and uri and store the result request message in msg. Free with gst_rtsp_message_free().

    Parameters

    • method: RTSPMethod

      the request method to use

    • uri: string

      the uri of the request

    Returns [RTSPResult, RTSPMessage]

  • Create a new response #GstRTSPMessage with code and reason and store the result message in msg. Free with gst_rtsp_message_free().

    When reason is %NULL, the default reason for code will be used.

    When request is not %NULL, the relevant headers will be copied to the new response message.

    Parameters

    • code: RTSPStatusCode

      the status code

    • reason: string

      the status reason or %NULL

    • request: RTSPMessage

      the request that triggered the response or %NULL

    Returns [RTSPResult, RTSPMessage]

  • Convert the comma separated list options to a #GstRTSPMethod bitwise or of methods. This functions is the reverse of gst_rtsp_options_as_text().

    Parameters

    • options: string

      a comma separated list of options

    Returns RTSPMethod

  • Converts the range in-place between different types of units. Ranges containing the special value #GST_RTSP_TIME_NOW can not be converted as these are only valid for #GST_RTSP_RANGE_NPT.

    Parameters

    Returns boolean

  • Retrieve the minimum and maximum values from range converted to #GstClockTime in min and max.

    A value of %GST_CLOCK_TIME_NONE will be used to signal #GST_RTSP_TIME_NOW and #GST_RTSP_TIME_END for min and max respectively.

    UTC times will be converted to nanoseconds since 1900.

    Parameters

    Returns [boolean, Gst.ClockTime, Gst.ClockTime]

  • Get the #GstElement that can handle the buffers transported over trans.

    It is possible that there are several managers available, use option to selected one.

    manager will contain an element name or %NULL when no manager is needed/available for trans.

    Parameters

    • trans: RTSPTransMode

      a #GstRTSPTransMode

    • option: number

      option index.

    Returns [RTSPResult, string | null]

  • Get the mime type of the transport mode trans. This mime type is typically used to generate #GstCaps events.

    Parameters

    • trans: RTSPTransMode

      a #GstRTSPTransMode

    • mime: string

      location to hold the result

    Returns RTSPResult

  • Allocate a new initialized #GstRTSPTransport. Use gst_rtsp_transport_free() after usage.

    Parameters

    • transport: RTSPTransport

      location to hold the new #GstRTSPTransport

    Returns RTSPResult

  • Parse the RTSP urlstr into a newly allocated #GstRTSPUrl. Free after usage with gst_rtsp_url_free().

    Parameters

    • urlstr: string

      the url string to parse

    Returns [RTSPResult, RTSPUrl]

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method