ActionStreamer 0.5.2__tar.gz → 0.5.4__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-0.5.2 → actionstreamer-0.5.4}/PKG-INFO +1 -1
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/Model/Model.py +21 -4
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/Model/__init__.py +2 -2
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/Event/Event.py +38 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/pyproject.toml +1 -1
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/README.md +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/CommonFunctions/CommonFunctions.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/CommonFunctions/Wifi/Wifi.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/CommonFunctions/Wifi/__init__.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/CommonFunctions/__init__.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/Config/Config.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/Config/__init__.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/Device/Device.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/Device/__init__.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/API/API.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/API/__init__.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/Event/__init__.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/File/File.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/File/__init__.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/Health/Health.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/Health/__init__.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/LogMessage/LogMessage.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/LogMessage/__init__.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/Patch/Patch.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/Patch/__init__.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/VideoClip/VideoClip.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/VideoClip/__init__.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/__init__.py +0 -0
- {actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/__init__.py +0 -0
|
@@ -73,9 +73,6 @@ class EventWithNames(Event):
|
|
|
73
73
|
self.agentIndex = agentIndex
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
#class File:
|
|
77
|
-
|
|
78
|
-
|
|
79
76
|
class RecordingParameters:
|
|
80
77
|
|
|
81
78
|
def __init__(self, height: int = 1920, width: int = 1080, fps: float = 30, bitrate: int = 5000000, vflip: int = 0, hflip: int = 0, encoding: str = '', segmentLengthSeconds: float = 0, audio: int = 0):
|
|
@@ -90,9 +87,29 @@ class RecordingParameters:
|
|
|
90
87
|
self.audio = audio
|
|
91
88
|
|
|
92
89
|
|
|
90
|
+
class File:
|
|
91
|
+
|
|
92
|
+
def __init__(self, key = 0, userID = 0, deviceID = 0, filename = '', fileGUID = '', sHA256Hash = '', fileLocation = '', fileExpiration = '', fileSize = '', fileInS3 = False, creationDate = '', createdBy = '', lastModifiedDate = '', lastModifiedBy = 0):
|
|
93
|
+
self.key = key
|
|
94
|
+
self.userID = userID
|
|
95
|
+
self.deviceID = deviceID
|
|
96
|
+
self.filename = filename
|
|
97
|
+
self.fileGUID = fileGUID
|
|
98
|
+
self.sHA256Hash = sHA256Hash
|
|
99
|
+
self.fileLocation = fileLocation
|
|
100
|
+
self.fileExpiration = fileExpiration
|
|
101
|
+
self.fileSize = fileSize
|
|
102
|
+
self.fileInS3 = fileInS3
|
|
103
|
+
self.creationDate = creationDate
|
|
104
|
+
self.createdBy = createdBy
|
|
105
|
+
self.lastModifiedDate = lastModifiedDate
|
|
106
|
+
self.lastModifiedBy = lastModifiedBy
|
|
107
|
+
|
|
108
|
+
|
|
93
109
|
class VideoClip:
|
|
94
110
|
|
|
95
|
-
def __init__(self, fileID=0, tSFileID=0, videoClipParameters='', localFilePath='', height=0, width=0, framesPerSecond:float=0, bitrate = 0, audioStatus=0, startTime=0, startTimeMs=0, endTime=0, endTimeMs=0, clipLengthInSeconds:float=0):
|
|
111
|
+
def __init__(self, key = 0, fileID = 0, tSFileID = 0, videoClipParameters = '', localFilePath = '', height = 0, width = 0, framesPerSecond: float = 0, bitrate = 0, audioStatus = 0, startTime = 0, startTimeMs = 0, endTime = 0, endTimeMs = 0, clipLengthInSeconds: float = 0):
|
|
112
|
+
self.videoClipID = key
|
|
96
113
|
self.fileID = fileID
|
|
97
114
|
self.tSFileID = tSFileID
|
|
98
115
|
self.videoClipParameters = videoClipParameters
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from .Model import Event, EventWithNames, EventType, EventStatus, VideoClip, RecordingParameters, TranscodingParameters, TransferArgs
|
|
1
|
+
from .Model import Event, EventWithNames, EventType, EventStatus, VideoClip, RecordingParameters, TranscodingParameters, TransferArgs, File
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
__all__ = ['Event', 'EventWithNames', 'EventType', 'EventStatus', 'VideoClip', 'RecordingParameters', 'TranscodingParameters', 'TransferArgs']
|
|
4
|
+
__all__ = ['Event', 'EventWithNames', 'EventType', 'EventStatus', 'VideoClip', 'RecordingParameters', 'TranscodingParameters', 'TransferArgs', 'File']
|
|
@@ -145,6 +145,44 @@ def get_event_details(ws_config: WebServiceConfig, event_id: int) -> WebServiceR
|
|
|
145
145
|
return ws_result
|
|
146
146
|
|
|
147
147
|
|
|
148
|
+
def update_event_progress(ws_config: WebServiceConfig, event_id: int, device_name: str, percent_complete: float) -> WebServiceResult:
|
|
149
|
+
|
|
150
|
+
ws_result = WebServiceResult(0, '', '', '', None)
|
|
151
|
+
|
|
152
|
+
try:
|
|
153
|
+
method = "PATCH"
|
|
154
|
+
path = 'v1/event/' + str(event_id) + '/progress'
|
|
155
|
+
url = ws_config.base_url + path
|
|
156
|
+
headers = {"Content-Type": "application/json"}
|
|
157
|
+
parameters = ''
|
|
158
|
+
|
|
159
|
+
json_post_data = {
|
|
160
|
+
"deviceName": device_name,
|
|
161
|
+
"percentComplete": percent_complete
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
body = json.dumps(json_post_data)
|
|
165
|
+
|
|
166
|
+
response_code, response_string = CommonFunctions.send_signed_request(ws_config, method, url, path, headers, parameters, body)
|
|
167
|
+
|
|
168
|
+
ws_result.http_response_code = response_code
|
|
169
|
+
ws_result.http_response_string = response_string
|
|
170
|
+
|
|
171
|
+
if response_string:
|
|
172
|
+
if not response_string == '':
|
|
173
|
+
ws_result.json_data = json.loads(response_string)
|
|
174
|
+
|
|
175
|
+
except Exception as ex:
|
|
176
|
+
ws_result.code = -1
|
|
177
|
+
filename, line_number = CommonFunctions.get_exception_info()
|
|
178
|
+
if filename is not None and line_number is not None:
|
|
179
|
+
print(f"Exception occurred at line {line_number} in {filename}")
|
|
180
|
+
print(ex)
|
|
181
|
+
ws_result.description = str(ex)
|
|
182
|
+
|
|
183
|
+
return ws_result
|
|
184
|
+
|
|
185
|
+
|
|
148
186
|
def update_event(ws_config: WebServiceConfig, event_id: int, event_status: int, result: str, process_id: int, tag_string='', tag_number=0, attempt_number=1) -> WebServiceResult:
|
|
149
187
|
|
|
150
188
|
ws_result = WebServiceResult(0, '', '', '', None)
|
|
File without changes
|
{actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/CommonFunctions/CommonFunctions.py
RENAMED
|
File without changes
|
|
File without changes
|
{actionstreamer-0.5.2 → actionstreamer-0.5.4}/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
|
{actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/LogMessage/LogMessage.py
RENAMED
|
File without changes
|
{actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/LogMessage/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/VideoClip/VideoClip.py
RENAMED
|
File without changes
|
{actionstreamer-0.5.2 → actionstreamer-0.5.4}/actionstreamer/WebService/VideoClip/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|