From b8bb01e9850fe2ffdacca72a162c3d776156b999 Mon Sep 17 00:00:00 2001 From: Valmo Trindade Date: Mon, 7 Apr 2025 04:46:53 -0300 Subject: [PATCH] improved video feed path generator to use player's name and role --- addons/main/functions/fn_video_init.sqf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/addons/main/functions/fn_video_init.sqf b/addons/main/functions/fn_video_init.sqf index c1d3478..e6cf0d8 100644 --- a/addons/main/functions/fn_video_init.sqf +++ b/addons/main/functions/fn_video_init.sqf @@ -22,6 +22,16 @@ if (isServer) exitWith { { _uuid = (_this select 0) call armatak_fnc_extract_uuid; + _uuid = (_this select 0) call armatak_fnc_extract_uuid; + _uuid_short = _uuid select [0, 8]; + _role = roleDescription (_this select 0); + _name = name (_this select 0); + + _role = [_role] call BIS_fnc_filterString; + _name = [_name] call BIS_fnc_filterString; + + _stream_path = _name + "_" + _role + "_" + _uuid_short; + armatak_mediamtx_video_stream_instance_address = missionNamespace getVariable "armatak_mediamtx_video_stream_instance_address"; armatak_mediamtx_video_stream_instance_port = missionNamespace getVariable "armatak_mediamtx_video_stream_instance_port"; armatak_mediamtx_video_stream_instance_auth_user = missionNamespace getVariable "armatak_mediamtx_video_stream_instance_auth_user";