GstRtspServer.RTSPPermissions¶
Fields¶
| Name | Type | Access | Description | 
|---|---|---|---|
| mini_object | Gst.MiniObject | r/w | 
Methods¶
| class | new() | 
| add_permission_for_role(role, permission, allowed) | |
| add_role(role) | |
| add_role_from_structure(structure) | |
| get_role(role) | |
| is_allowed(role, permission) | |
| remove_role(role) | 
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: - GstRtspServer.RTSPPermissions- 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 named- permission1, 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: - Gst.Structure- Get all permissions for role in self. 
 
- 
classmethod