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 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

    • initial_buffer: string

      data already read from fd

    Returns [RTSPResult, RTSPConnection]

  • rtsp_generate_digest_auth_response(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

  • rtsp_generate_digest_auth_response_from_md5(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 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]

  • rtsp_options_from_text(options: string): RTSPMethod
  • 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]

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