Fixed UAS stream URI resolver

This commit is contained in:
2026-05-09 11:58:08 -03:00
parent 671e7d5dc1
commit 3c37185c1a

View File

@@ -20,15 +20,19 @@ private _normalize = {
format ["rtp://%1", _url]
};
if (!isNull _uav && {_activelyControlledUav isEqualTo _uav}) then {
if (!isNull _uav) then {
private _objectVideoUrl = [_uav] call armatak_fnc_extract_marker_video_url;
private _normalizedObjectVideoUrl = [_objectVideoUrl] call _normalize;
if (_normalizedObjectVideoUrl isNotEqualTo "") exitWith {
_normalizedObjectVideoUrl
};
private _activeSessionVideoUrl = player getVariable [QEGVAR(client,video_feed_url), ""];
private _normalizedActiveSessionVideoUrl = [_activeSessionVideoUrl] call _normalize;
if (_normalizedActiveSessionVideoUrl isNotEqualTo "") exitWith {
_normalizedActiveSessionVideoUrl
};
if (!isNull _uav) exitWith {
_defaultVideoUri
};