GstRtspServer.RTSPMountPoints

g GObject.Object GObject.Object GstRtspServer.RTSPMountPoints GstRtspServer.RTSPMountPoints GObject.Object->GstRtspServer.RTSPMountPoints

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add_factory (path, factory)

make_path (url)

match (path)

remove_factory (path)

Virtual Methods

Inherited:

GObject.Object (7)

do_make_path (url)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class GstRtspServer.RTSPMountPoints(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GstRtspServer.RTSPMountPointsClass

Creates a GstRtspServer.RTSPMediaFactory object for a given url.

classmethod new()[source]
Returns:

a new GstRtspServer.RTSPMountPoints

Return type:

GstRtspServer.RTSPMountPoints

Make a new mount points object.

add_factory(path, factory)[source]
Parameters:

Attach factory to the mount point path in self.

path is either of the form (/node)+ or the root path ‘/’. (An empty path is not allowed.) Any previous mount point will be freed.

Ownership is taken of the reference on factory so that factory should not be used after calling this function.

make_path(url)[source]
Parameters:

url (GstRtsp.RTSPUrl) – a GstRtsp.RTSPUrl

Returns:

a path string for url, GLib.free() after usage.

Return type:

str or None

Make a path string from url.

match(path)[source]
Parameters:

path (str) – a mount point

Returns:

the GstRtspServer.RTSPMediaFactory for path. GObject.Object.unref() after usage.

matched:

the amount of path matched

Return type:

(GstRtspServer.RTSPMediaFactory, matched: int)

Find the factory in self that has the longest match with path.

If matched is None, path will match the factory exactly otherwise the amount of characters that matched is returned in matched.

remove_factory(path)[source]
Parameters:

path (str) – a mount point

Remove the GstRtspServer.RTSPMediaFactory associated with path in self.

do_make_path(url) virtual
Parameters:

url (GstRtsp.RTSPUrl) – a GstRtsp.RTSPUrl

Returns:

a path string for url, GLib.free() after usage.

Return type:

str or None

Make a path string from url.