Knowledge base > Components > Access sharing and P2P communication settings
In today's world, sharing access to video management systems (VMS) has become essential. Whether you're sharing access to a home surveillance camera with your spouse or granting role-based access in an organization where different users have specific responsibilities—such as monitoring or configuring—the ability to manage who can view and control which components is crucial. In Banalytics VMS, we implement P2P (Peer-to-Peer) communication, enabling direct communication between devices and users without the need for a centralized server or intermediary. This approach ensures a more secure, efficient, and flexible system for both individual and organizational use.
Banalytics VMS offers the capability to manage user access to various system components. You can grant access to individual users or groups of users, each with specific permissions tailored to their roles. This tutorial will guide you through the steps to configure access rights and share permissions, ensuring that users only have access to the components they need.
Go to the P2P communication section under Server configuration. Click the Account Sharing button. Enter the user’s email address. This can be an email of a registered user and a new one.
The email will appear under the Account Sharing section. Next to the email, you will see the following actions:
Add user to a group.
Resend connection password.
Delete sharing.
Click the + icon next to the user’s email to select a component you want to grant access to. For each component, you will see an option to delete access.
Click the + icon next to the component to configure the access rights for the selected component. Define the specific permissions you wish to grant. Depending on the component, they can be:
Action execution. This permission gives access to execute any task configured for the component. For example, play sound.
Audio stream. This permission gives access to audio streams from the camera in real time.
Read. This permission gives access to view component configuration.
Start/Stop. This permission gives access to start/stop the component.
Update. This permission gives access to update component configuration. Note: To update the configuration, you must grant permission to both "Read" and "Update".
Video stream. This permission gives access to video streams from the camera in real time.
After granting access, the user will receive an email containing their connection password. Upon creating an account or logging in, the user will only see the components to which they have been granted access.
Click the User group button. Enter the group name. This can be a role name - Visitor, Admin.
Configuring access for a user group is similar to granting individual access. Once you grant access to a component for the group, any new users you add to this group will automatically inherit the same permissions.
You can check who and when connected to your servers at the Account connection history tab under P2P communication.
In addition to role configuration and access grant, the component allows configuring the connection settings for the current user. These settings relate to the browser's connection to the server. Camera settings related to recording can differ from those you configure to watch the live stream in the browser.
Value
Required (Yes/No)
Description
Default
Restart on failure
Yes
Restart mode upon catching an error:
Stop on failure - not restarted until triggered manually.
Immediately - tries to restart automatically immediately after catching an error.
10 sec - tries to restart automatically with a 10-seconds delay after catching an error.
30 sec - tries to restart automatically with a 30-seconds delay after catching an error.
1 min - tries to restart automatically with a 1-minute delay after catching an error.
10 sec
Security token TTL (min)
Yes
Security Token TTL (Time to Live) defines the lifespan of the security token issued to the user. This token authenticates and authorizes you in the Banalytics application. So, if you close the browser window and open again during this period, you won't need to re-login.
A shorter TTL improves security by limiting the duration of a token's validity, forcing more frequent re-authentication. On the other hand, a longer TTL may reduce the frequency of authentication requests, but it may expose the system to potential security risks if the token is intercepted.
Default to 15 min
Client timeout (min)
Yes
The Client Timeout sets the maximum time the connection from the browser to the Banalytics server can remain inactive before it is automatically terminated. The server will disconnect if the browser doesn’t send any requests or interact with the Banalytics server during this period.
A longer timeout may be appropriate when users expect active sessions for longer durations, such as monitoring systems in security operations.
Default to 5 min
Max bandwidth (kB/s)
Yes
This parameter defines the maximum allowed bandwidth for server connection through the browser, measured in kilobytes per second (kB/s). It ensures that the video stream and data transmission do not exceed a specified limit, preventing network congestion.
Set this value to optimize video streaming quality depending on available network resources.
Default to 500000s
Reserved for file transmission (%)
Yes
This setting defines the percentage of the total bandwidth reserved specifically for file transmission. The remainder of the bandwidth can be used for video streaming and other data.
If your system requires frequent file transfers (e.g., recordings or snapshots), you can reserve a portion of the available bandwidth to ensure smooth transmission without affecting live streaming quality.
Default to 30%
Max bitrate
Yes
The maximum bitrate (bits per second) setting defines the highest allowable bitrate for the video stream. It directly impacts the quality and resolution of the video stream. Higher bitrate values lead to better image quality but require more network resources.
Default to 300000 bps
GOP (Group of Pictures)
Yes
The GOP setting determines the interval between keyframes (I-frames) in the video stream. This is important for optimizing the video stream based on network conditions and the required level of video clarity.
Shorter GOPs ensure smoother video and are suitable for live streaming, but they mean more keyframes and lead to increased data usage.
Longer GOPs reduce data usage at the cost of video smoothness. Longer GOPs can be used for recording or situations with limited bandwidth.
Default to 100
Live streaming size
Yes
This parameter sets the resolution of the live stream video. You can configure the stream to match the display or the user’s connection capabilities. Lower resolutions use less bandwidth but may sacrifice video clarity.
Adjust the resolution to match available bandwidth and desired video quality, especially for remote users with limited internet connections.
640x480
Adaptive bitrate
No
Enabling adaptive bitrate allows the system to automatically adjust the video stream’s bitrate based on the user's current network conditions. If the connection becomes slower, the bitrate will decrease to avoid buffering or interruptions.
This feature is ideal for users with fluctuating network speeds, ensuring continuous playback without excessive buffering. Set this to "True" to enable adaptive bitrate.
Default to YES