Since 1.6append_Since 1.6append_Since 1.6copySince 1.6equalSince 1.6from_Since 1.6get_Get the fragment name from the URI or null if it doesn't exist.
If uri is null then returns null.
The host name from the Gst.Uri object or null.
Since 1.6get_Get the host name from the URI or null if it doesn't exist.
If uri is null then returns null.
The host name from the Gst.Uri object or null.
Since 1.12get_Get the media fragment table from the URI, as defined by "Media Fragments URI 1.0".
Hash table returned by this API is a list of "key-value" pairs, and the each
pair is generated by splitting "URI fragment" per "&" sub-delims, then "key"
and "value" are split by "=" sub-delims. The "key" returned by this API may
be undefined keyword by standard.
A value may be null to indicate that the key should appear in the fragment
string in the URI, but does not have a value. Free the returned GLib.HashTable
with g_hash_table_unref() when it is no longer required.
Modifying this hash table does not affect the fragment in the URI.
See more about Media Fragments URI 1.0 (W3C) at https://www.w3.org/TR/media-frags/
The fragment hash table from the URI.
Since 1.6get_Since 1.6get_Get a list of path segments from the URI.
A GLib.List of path segment strings or null if no path segments are available. Free the list when no longer needed with g_list_free_full(list, g_free).
Since 1.6get_Since 1.6get_Get the port number from the URI or GST_URI_NO_PORT if it doesn't exist.
If uri is null then returns GST_URI_NO_PORT.
The port number from the Gst.Uri object or GST_URI_NO_PORT.
Since 1.6get_Since 1.6get_Since 1.24get_Get a percent encoded URI query string from the uri, with query parameters
in the order provided by the keys list. Only parameter keys in the list will
be added to the resulting URI string. This method can be used by retrieving
the keys with gst_uri_get_query_keys() and then sorting the list, for
example.
A GList containing the query argument key strings.
A percent encoded query string. Use g_free() when no longer needed.
Since 1.6get_Get the query table from the URI. Keys and values in the table are freed
with g_free when they are deleted. A value may be null to indicate that
the key should appear in the query string in the URI, but does not have a
value. Free the returned GLib.HashTable with g_hash_table_unref() when it is
no longer required. Modifying this hash table will modify the query in the
URI.
The query hash table from the URI.
Since 1.6get_Get the value associated with the query_key key. Will return null if the
key has no value or if the key does not exist in the URI query table. Because
null is returned for both missing keys and keys with no value, you should
use gst_uri_query_has_key() to determine if a key is present in the URI
query.
The key to lookup.
The value for the given key, or null if not found.
Get the scheme name from the URI or null if it doesn't exist.
If uri is null then returns null.
The scheme from the Gst.Uri object or null.
Since 1.6get_Get the userinfo (usually in the form "username:password") from the URI
or null if it doesn't exist. If uri is null then returns null.
The userinfo from the Gst.Uri object or null.
Since 1.6is_Since 1.6is_Check if it is safe to write to this Gst.Uri.
Check if the refcount of uri is exactly 1, meaning that no other
reference exists to the Gst.Uri and that the Gst.Uri is therefore writable.
Modification of a Gst.Uri should only be done after verifying that it is writable.
true if it is safe to write to the object.
Since 1.6joinSince 1.6make_Make the Gst.Uri writable.
Checks if uri is writable, and if so the original object is returned. If
not, then a writable copy is made and returned. This gives away the
reference to uri and returns a reference to the new Gst.Uri.
If uri is null then null is returned.
A writable version of uri.
Since 1.6new_Like gst_uri_new(), but joins the new URI onto a base URI.
The scheme for the new URI.
The user-info for the new URI.
The host name for the new URI.
The port number for the new URI or GST_URI_NO_PORT.
The path for the new URI with '/' separating path elements.
The query string for the new URI with '&' separating query elements. Elements containing '&' characters should encode them as "%26".
The fragment name for the new URI.
The new URI joined onto base.
Since 1.6normalizeNormalization will remove extra path segments ("." and "..") from the URI. It will also convert the scheme and host name to lower case and any percent-encoded values to uppercase.
The Gst.Uri object must be writable. Check with gst_uri_is_writable() or use
gst_uri_make_writable() first.
TRUE if the URI was modified.
Since 1.6query_Since 1.6refSince 1.6remove_Since 1.6set_Since 1.6set_Since 1.6set_Since 1.6set_Since 1.6set_Since 1.6set_Since 1.6set_Since 1.6set_Set the query table to use in the URI. The old table is unreferenced and a
reference to the new one is used instead. A value if null for query_table
will remove the query string from the URI.
The new query table to use.
true if the new table was successfully used for the query table.
Since 1.6set_This inserts or replaces a key in the query table. A query_value of null
indicates that the key has no associated value, but will still be present in
the query string.
The key for the query entry.
The value for the key.
true if the query table was successfully updated.
Since 1.6set_Since 1.6set_Since 1.6to_Since 1.24to_Convert the URI to a string, with the query arguments in a specific order.
Only the keys in the keys list will be added to the resulting string.
Returns the URI as held in this object as a gchar* nul-terminated string.
The caller should g_free() the string once they are finished with it.
The string is put together as described in RFC 3986.
A GList containing the query argument key strings.
The string version of the URI.
Since 1.6unrefDecrement the reference count to this Gst.Uri object.
If the reference count drops to 0 then finalize this object.
See gst_mini_object_unref() for further info.
StaticDeprecatedconstructStaticSince 1.6from_StaticSince 1.18from_Parses a URI string into a new Gst.Uri object. Will return NULL if the URI
cannot be parsed. This is identical to gst_uri_from_string() except that
the userinfo and fragment components of the URI will not be unescaped while
parsing.
Use this when you need to extract a username and password from the userinfo
such as https://user:password@example.com since either may contain
a URI-escaped ':' character. gst_uri_from_string() will unescape the entire
userinfo component, which will make it impossible to know which ':'
delineates the username and password.
The same applies to the fragment component of the URI, such as https://example.com/path#fragment which may contain a URI-escaped '#'.
The URI string to parse.
Staticget_Extracts the location out of a given valid URI, ie. the protocol and "://"
are stripped from the URI, which means that the location returned includes
the hostname if one is specified. The returned string must be freed using
g_free().
Free-function: g_free
A URI string
Staticget_Extracts the protocol out of a given valid URI. The returned string must be
freed using g_free().
A URI string
Statichas_Checks if the protocol of a given valid URI matches protocol.
a URI string
a protocol string (e.g. "http")
Staticis_Tests if the given string is a valid URI identifier. URIs start with a valid scheme followed by ":" and maybe a string identifying the location.
A URI string
StaticSince 1.6join_StaticnewStaticprotocol_Checks if an element exists that supports the given URI protocol. Note
that a positive return value does not imply that a subsequent call to
gst_element_make_from_uri() is guaranteed to work.
Staticprotocol_Tests if the given string is a valid protocol identifier. Protocols must consist of alphanumeric characters, '+', '-' and '.' and must start with a alphabetic character. See RFC 3986 Section 3.1.
A string
A Gst.Uri object can be used to parse and split a URI string into its constituent parts. Two Gst.Uri objects can be joined to make a new Gst.Uri using the algorithm described in RFC3986.