Gjsify LogoGjsify Logo

Provides helper functions to handle RTSP urls.

record

Hierarchy

  • RTSPUrl

Index

Constructors

Properties

abspath: string

the absolute path

field
family: RTSPFamily

the family

field
host: string

the host

field
passwd: string

the password

field
port: number

the port

field
query: string

additional query parameters

field
transports: RTSPLowerTrans

the transports allowed

field
user: string

the user

field
name: string

Methods

  • decodePathComponents(): string[]
  • Splits the path of url on '/' boundaries, decoding the resulting components,

    The decoding performed by this routine is "URI decoding", as defined in RFC 3986, commonly known as percent-decoding. For example, a string "foo%2fbar" will decode to "foo/bar" -- the %2f being replaced by the corresponding byte with hex value 0x2f. Note that there is no guarantee that the resulting byte sequence is valid in any given encoding. As a special case, %00 is not unescaped to NUL, as that would prematurely terminate the string.

    Also note that since paths usually start with a slash, the first component will usually be the empty string.

    Returns string[]

  • free(): void
  • getRequestUri(): string
  • Get a newly allocated string describing the request URI for url.

    Returns string

  • getRequestUriWithControl(controlPath: string): string
  • Get a newly allocated string describing the request URI for url combined with the control path for control_path

    Parameters

    • controlPath: string

      an RTSP aggregate control path

    Returns string

  • 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