Skip to content

Commit b8bb01e

Browse files
committed
improved video feed path generator to use player's name and role
1 parent 10d0b6f commit b8bb01e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

addons/main/functions/fn_video_init.sqf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ if (isServer) exitWith {
2222
{
2323
_uuid = (_this select 0) call armatak_fnc_extract_uuid;
2424

25+
_uuid = (_this select 0) call armatak_fnc_extract_uuid;
26+
_uuid_short = _uuid select [0, 8];
27+
_role = roleDescription (_this select 0);
28+
_name = name (_this select 0);
29+
30+
_role = [_role] call BIS_fnc_filterString;
31+
_name = [_name] call BIS_fnc_filterString;
32+
33+
_stream_path = _name + "_" + _role + "_" + _uuid_short;
34+
2535
armatak_mediamtx_video_stream_instance_address = missionNamespace getVariable "armatak_mediamtx_video_stream_instance_address";
2636
armatak_mediamtx_video_stream_instance_port = missionNamespace getVariable "armatak_mediamtx_video_stream_instance_port";
2737
armatak_mediamtx_video_stream_instance_auth_user = missionNamespace getVariable "armatak_mediamtx_video_stream_instance_auth_user";

0 commit comments

Comments
 (0)