ActionStreamer 1.3.2__tar.gz → 1.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/PKG-INFO +1 -1
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/Model/Model.py +69 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/Model/__init__.py +2 -2
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/EventPreset/EventPreset.py +40 -1
- actionstreamer-1.3.3/actionstreamer/WebService/EventPreset/__init__.py +4 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/pyproject.toml +1 -1
- actionstreamer-1.3.2/actionstreamer/WebService/EventPreset/__init__.py +0 -4
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/README.md +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/CommonFunctions/CommonFunctions.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/CommonFunctions/Wifi/Wifi.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/CommonFunctions/Wifi/__init__.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/CommonFunctions/__init__.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/Config/Config.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/Config/__init__.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/Device/Device.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/Device/__init__.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/API/API.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/API/__init__.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/Event/Event.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/Event/__init__.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/File/File.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/File/__init__.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/Health/Health.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/Health/__init__.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/LogMessage/LogMessage.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/LogMessage/__init__.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/Notification/Notification.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/Notification/__init.py__ +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/Package/Package.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/Package/__init__.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/Patch/Patch.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/Patch/__init__.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/Tag/Tag.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/Tag/__init__.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/VideoClip/VideoClip.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/VideoClip/__init__.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/__init__.py +0 -0
- {actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/__init__.py +0 -0
|
@@ -221,6 +221,75 @@ class RecordingArgs:
|
|
|
221
221
|
return json.dumps(self.to_dict())
|
|
222
222
|
|
|
223
223
|
|
|
224
|
+
|
|
225
|
+
class ReceiveActionSyncArgs:
|
|
226
|
+
|
|
227
|
+
def __init__(self, bufferMS: int = 200, audio: int = 0, rotationDegrees: int = 0, filename: str = '', deviceIP: str = '', devicePort: int = 0, cardID: int = 0, cardDeviceID: int = 0, senderDeviceID: int = 0, **kwargs):
|
|
228
|
+
self.buffer_ms = bufferMS
|
|
229
|
+
self.audio = audio
|
|
230
|
+
self.rotationDegrees = rotationDegrees
|
|
231
|
+
self.filename = filename
|
|
232
|
+
self.device_ip = deviceIP
|
|
233
|
+
self.device_port = devicePort
|
|
234
|
+
self.card_id = cardID
|
|
235
|
+
self.card_device_id = cardDeviceID
|
|
236
|
+
self.sender_device_id = senderDeviceID
|
|
237
|
+
|
|
238
|
+
# Store or ignore unknown fields
|
|
239
|
+
self.extra_fields = kwargs # Optionally, store unknown fields for debugging or logging
|
|
240
|
+
|
|
241
|
+
# Warn or log if there are unexpected keyword arguments
|
|
242
|
+
if kwargs:
|
|
243
|
+
print(f"Warning: Ignoring unexpected arguments: {kwargs}")
|
|
244
|
+
|
|
245
|
+
def to_dict(self):
|
|
246
|
+
"""Return a dictionary representation excluding extra_fields."""
|
|
247
|
+
filtered_parameters = {}
|
|
248
|
+
|
|
249
|
+
for attribute_name, attribute_value in self.__dict__.items():
|
|
250
|
+
if attribute_name != "extra_fields":
|
|
251
|
+
filtered_parameters[attribute_name] = attribute_value
|
|
252
|
+
|
|
253
|
+
return filtered_parameters
|
|
254
|
+
|
|
255
|
+
def to_json(self):
|
|
256
|
+
"""Return a JSON string representation excluding extra_fields."""
|
|
257
|
+
return json.dumps(self.to_dict())
|
|
258
|
+
|
|
259
|
+
class SendActionSyncArgs:
|
|
260
|
+
|
|
261
|
+
def __init__(self, width: int = 1280, height: int = 720, audio: int = 0, rotationDegrees: int = 0, serverIP: str = '', port: int = 0, fps: float = 30.0, bitrate: int = 0, **kwargs):
|
|
262
|
+
self.width = width
|
|
263
|
+
self.height = height
|
|
264
|
+
self.audio = audio
|
|
265
|
+
self.rotationDegrees = rotationDegrees
|
|
266
|
+
self.server_ip = serverIP
|
|
267
|
+
self.port = port
|
|
268
|
+
self.fps = fps
|
|
269
|
+
self.bitrate = bitrate
|
|
270
|
+
|
|
271
|
+
# Store or ignore unknown fields
|
|
272
|
+
self.extra_fields = kwargs # Optionally, store unknown fields for debugging or logging
|
|
273
|
+
|
|
274
|
+
# Warn or log if there are unexpected keyword arguments
|
|
275
|
+
if kwargs:
|
|
276
|
+
print(f"Warning: Ignoring unexpected arguments: {kwargs}")
|
|
277
|
+
|
|
278
|
+
def to_dict(self):
|
|
279
|
+
"""Return a dictionary representation excluding extra_fields."""
|
|
280
|
+
filtered_parameters = {}
|
|
281
|
+
|
|
282
|
+
for attribute_name, attribute_value in self.__dict__.items():
|
|
283
|
+
if attribute_name != "extra_fields":
|
|
284
|
+
filtered_parameters[attribute_name] = attribute_value
|
|
285
|
+
|
|
286
|
+
return filtered_parameters
|
|
287
|
+
|
|
288
|
+
def to_json(self):
|
|
289
|
+
"""Return a JSON string representation excluding extra_fields."""
|
|
290
|
+
return json.dumps(self.to_dict())
|
|
291
|
+
|
|
292
|
+
|
|
224
293
|
class CameraMultiplexArgs:
|
|
225
294
|
|
|
226
295
|
def __init__(self, height: int = 1920, width: int = 1080, fps: float = 30, audio: int = 0, **kwargs):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from .Model import AgentType, Event, EventWithNames, EventType, EventStatus, EventPreset, VideoClip, RecordingParameters, RecordingArgs, TranscodingParameters, TranscodingArgs, TransferArgs, ConcatenateClipsArgs, File, RTMPParameters, RTMPArgs, WifiConnection, NameValuePair, EventDetails, StandardResult, EpochRange, DeviceObject, CreateVideoClip, VideoClipType, ConferenceArgs, ClearFlagQueueArgs, Package, CameraMultiplexArgs, CaptureFramesArgs
|
|
1
|
+
from .Model import AgentType, Event, EventWithNames, EventType, EventStatus, EventPreset, VideoClip, RecordingParameters, RecordingArgs, TranscodingParameters, TranscodingArgs, TransferArgs, ConcatenateClipsArgs, File, RTMPParameters, RTMPArgs, WifiConnection, NameValuePair, EventDetails, StandardResult, EpochRange, DeviceObject, CreateVideoClip, VideoClipType, ConferenceArgs, ClearFlagQueueArgs, Package, CameraMultiplexArgs, CaptureFramesArgs, ReceiveActionSyncArgs, SendActionSyncArgs
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
__all__ = ['AgentType', 'Event', 'EventWithNames', 'EventType', 'EventStatus', 'EventPreset', 'VideoClip', 'RecordingParameters', 'RecordingArgs', 'TranscodingParameters', 'TranscodingArgs', 'TransferArgs', 'ConcatenateClipsArgs', 'File', 'RTMPParameters', 'RTMPArgs', 'WifiConnection', 'NameValuePair', 'EventDetails', 'StandardResult', 'EpochRange', 'DeviceObject', 'CreateVideoClip', 'VideoClipType', 'ConferenceArgs', 'ClearFlagQueueArgs', 'Package', 'CameraMultiplexArgs', 'CaptureFramesArgs']
|
|
4
|
+
__all__ = ['AgentType', 'Event', 'EventWithNames', 'EventType', 'EventStatus', 'EventPreset', 'VideoClip', 'RecordingParameters', 'RecordingArgs', 'TranscodingParameters', 'TranscodingArgs', 'TransferArgs', 'ConcatenateClipsArgs', 'File', 'RTMPParameters', 'RTMPArgs', 'WifiConnection', 'NameValuePair', 'EventDetails', 'StandardResult', 'EpochRange', 'DeviceObject', 'CreateVideoClip', 'VideoClipType', 'ConferenceArgs', 'ClearFlagQueueArgs', 'Package', 'CameraMultiplexArgs', 'CaptureFramesArgs', 'ReceiveActionSyncArgs', 'SendActionSyncArgs']
|
{actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/EventPreset/EventPreset.py
RENAMED
|
@@ -82,4 +82,43 @@ def create_event_preset(ws_config: WebServiceConfig, event_preset: Model.EventPr
|
|
|
82
82
|
response_code = -1
|
|
83
83
|
response_string = "Exception in create_event_preset. Line number " + str(line_number)
|
|
84
84
|
|
|
85
|
-
return response_code, response_string
|
|
85
|
+
return response_code, response_string
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def set_startup_preset(ws_config: WebServiceConfig, event_preset_id: int, offline_preset: bool = False, device_id: int = 0, device_group_id: int = 0) -> tuple[int, str]:
|
|
89
|
+
|
|
90
|
+
# If device_group_id is set, device_id will be ignored.
|
|
91
|
+
|
|
92
|
+
try:
|
|
93
|
+
if offline_preset == True:
|
|
94
|
+
device_state = 'online'
|
|
95
|
+
else:
|
|
96
|
+
device_state = 'offline'
|
|
97
|
+
|
|
98
|
+
method = "POST"
|
|
99
|
+
path = f'v1/eventpreset/startupevent/{device_state}/{event_preset_id}'
|
|
100
|
+
url = ws_config.base_url + path
|
|
101
|
+
headers = {"Content-Type": "application/json"}
|
|
102
|
+
parameters = ''
|
|
103
|
+
|
|
104
|
+
json_post_data = {
|
|
105
|
+
"deviceID": device_id,
|
|
106
|
+
"deviceGroupID": device_group_id
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
body = json.dumps(json_post_data)
|
|
110
|
+
|
|
111
|
+
response_code, response_string = CommonFunctions.send_signed_request(ws_config, method, url, path, headers, parameters, body)
|
|
112
|
+
|
|
113
|
+
except Exception as ex:
|
|
114
|
+
|
|
115
|
+
filename, line_number = CommonFunctions.get_exception_info()
|
|
116
|
+
if filename is not None and line_number is not None:
|
|
117
|
+
print(f"Exception occurred at line {line_number} in {filename}")
|
|
118
|
+
print(ex)
|
|
119
|
+
|
|
120
|
+
response_code = -1
|
|
121
|
+
response_string = "Exception in create_event_preset. Line number " + str(line_number)
|
|
122
|
+
|
|
123
|
+
return response_code, response_string
|
|
124
|
+
|
|
File without changes
|
{actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/CommonFunctions/CommonFunctions.py
RENAMED
|
File without changes
|
|
File without changes
|
{actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/CommonFunctions/Wifi/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/LogMessage/LogMessage.py
RENAMED
|
File without changes
|
{actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/LogMessage/__init__.py
RENAMED
|
File without changes
|
{actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/Notification/Notification.py
RENAMED
|
File without changes
|
{actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/Notification/__init.py__
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/VideoClip/VideoClip.py
RENAMED
|
File without changes
|
{actionstreamer-1.3.2 → actionstreamer-1.3.3}/actionstreamer/WebService/VideoClip/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|