GstRtspServer.RTSPMountPoints¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GstRtspServer.RTSPMountPoints(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Creates a
GstRtspServer.RTSPMediaFactory
object for a given url.- add_factory(path, factory)[source]¶
- Parameters:
path (
str
) – a mount pointfactory (
GstRtspServer.RTSPMediaFactory
) – aGstRtspServer.RTSPMediaFactory
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
) – aGstRtsp.RTSPUrl
- Returns:
a path string for url,
GLib.free
() after usage.- Return type:
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
) – aGstRtsp.RTSPUrl
- Returns:
a path string for url,
GLib.free
() after usage.- Return type:
Make a path string from url.