mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 15:33:29 +00:00
refactored video streaming module
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
class CfgVehicles {
|
||||
class Logic;
|
||||
class Logic;
|
||||
|
||||
class Module_F : Logic
|
||||
{
|
||||
class AttributesBase
|
||||
@@ -18,84 +19,54 @@ class CfgVehicles {
|
||||
class AnyBrain;
|
||||
};
|
||||
};
|
||||
class armatak_module_core;
|
||||
class armatak_module_video_stream_core: armatak_module_core {
|
||||
class EGVAR(server,moduleBase);
|
||||
class GVAR(videoModule): EGVAR(server,moduleBase) {
|
||||
scope = 2;
|
||||
displayname = "ARMATAK MediaMTX Video Feed Parser";
|
||||
icon = "\a3\Modules_F_Curator\Data\iconcuratorsetcamera_ca.paa";
|
||||
category = "armatak_module_category";
|
||||
function = "armatak_fnc_video_init";
|
||||
scopeCurator = 0;
|
||||
displayname = "Video Streaming Handler";
|
||||
icon = "\a3\Modules_F_Curator\Data\iconRadio_ca.paa";
|
||||
category = QEGVAR(main,moduleCategory);
|
||||
function = QFUNC(videoParser);
|
||||
functionPriority = 1;
|
||||
isGlobal = 0;
|
||||
isTriggerActivated = 0;
|
||||
isTriggerActivated = 1;
|
||||
isDisposable = 1;
|
||||
is3den = 0;
|
||||
curatorCanAttach = 0;
|
||||
curatorInfoType = "RscDisplayAttributeModuleNuke";
|
||||
|
||||
canSetArea = 0;
|
||||
canSetAreaShape = 0;
|
||||
canSetAreaHeight = 0;
|
||||
|
||||
class AttributesValues {
|
||||
size3[] = { 1, 1, -1 };
|
||||
isRectangle = 0;
|
||||
};
|
||||
|
||||
class Attributes: AttributesBase {
|
||||
class armatak_module_mediamtx_video_stream_instance_address: Edit {
|
||||
property = "armatak_module_mediamtx_video_stream_instance_address";
|
||||
class GVAR(instanceAddress): Edit {
|
||||
property = QGVAR(instanceAddress);
|
||||
displayname = "MediaMTX Provider Address";
|
||||
tooltip = "MediaMTX Provider Instance Address";
|
||||
typeName = "STRING";
|
||||
defaultValue = "localhost";
|
||||
};
|
||||
class armatak_module_mediamtx_video_stream_instance_port: Edit {
|
||||
class GVAR(instancePort): Edit {
|
||||
property = "armatak_module_mediamtx_video_stream_instance_port";
|
||||
displayname = "MediaMTX Provider Port";
|
||||
tooltip = "MediaMTX Provider Port for handling video streams";
|
||||
typeName = "STRING";
|
||||
defaultValue = "8554";
|
||||
};
|
||||
class armatak_module_mediamtx_video_stream_instance_auth_user: Edit {
|
||||
property = "armatak_module_mediamtx_video_stream_instance_auth_user";
|
||||
class GVAR(instanceAuthUser): Edit {
|
||||
property = QGVAR(instanceAuthUser);
|
||||
displayname = "MediaMTX Provider Username";
|
||||
tooltip = "MediaMTX Provider Instance Username";
|
||||
typeName = "STRING";
|
||||
defaultValue = "administrator";
|
||||
};
|
||||
class armatak_module_mediamtx_video_stream_instance_auth_pass: Edit {
|
||||
property = "armatak_module_mediamtx_video_stream_instance_auth_pass";
|
||||
class GVAR(instanceAuthPassword): Edit {
|
||||
property = QGVAR(instanceAuthPassword);
|
||||
displayname = "MediaMTX Provider Password";
|
||||
tooltip = "MediaMTX Provider Instance Password";
|
||||
typeName = "STRING";
|
||||
defaultValue = "password";
|
||||
};
|
||||
class ModuleDescription: ModuleDescription {};
|
||||
};
|
||||
|
||||
class ModuleDescription: ModuleDescription {
|
||||
description = "Generate the initial ARMATAK configuration, syncronizing all players to the TAK server instance";
|
||||
sync[] = {"LocationArea_F"};
|
||||
|
||||
class LocationArea_F {
|
||||
description[] = {
|
||||
"First line",
|
||||
"Second line"
|
||||
};
|
||||
position = 1;
|
||||
direction = 1;
|
||||
optional = 1;
|
||||
duplicate = 1;
|
||||
synced[] = { "BluforUnit", "AnyBrain" };
|
||||
};
|
||||
class BluforUnit
|
||||
{
|
||||
description = "Short description";
|
||||
displayName = "Any BLUFOR unit";
|
||||
icon = "iconMan";
|
||||
side = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user