GstRtspServer.RTSPPermissions¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
mini_object |
r/w |
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class GstRtspServer.RTSPPermissions¶
The opaque permissions structure. It is used to define the permissions of objects in different roles.
- classmethod new()[source]¶
- Returns:
a new empty authorization permissions.
- Return type:
Create a new empty Authorization permissions.
- add_permission_for_role(role, permission, allowed)[source]¶
- Parameters:
Add a new permission for role to self with the access in allowed.
New in version 1.14.
- add_role(role)[source]¶
- Parameters:
role (
str
) – a role
Add a new role to self without any permissions. You can add permissions for the role with
GstRtspServer.RTSPPermissions.add_permission_for_role
().New in version 1.14.
- add_role_from_structure(structure)[source]¶
- Parameters:
structure (
Gst.Structure
) –
Add a new role to self based on structure, for example given a role named
tester
, which should be granted a permission namedpermission1
, the structure could be created with:`` gst_structure_new (“tester”, “permission1”, G_TYPE_BOOLEAN, TRUE, NULL); ``
New in version 1.14.
- get_role(role)[source]¶
- Parameters:
role (
str
) – a role- Returns:
the structure with permissions for role. It remains valid for as long as self is valid.
- Return type:
Get all permissions for role in self.