ActionStreamer 0.2.31__tar.gz → 0.2.34__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.2.31 → actionstreamer-0.2.34}/ActionStreamer/CommonFunctions/CommonFunctions.py +6 -2
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/Model/Model.py +1 -1
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/Event/Event.py +4 -1
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/PKG-INFO +1 -1
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/pyproject.toml +1 -1
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/CommonFunctions/Wifi/Wifi.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/CommonFunctions/Wifi/__init__.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/CommonFunctions/__init__.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/Config/Config.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/Config/__init__.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/Device/Device.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/Device/__init__.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/Model/__init__.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/API/API.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/API/__init__.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/Event/__init__.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/File/File.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/File/__init__.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/Health/Health.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/Health/__init__.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/LogMessage/LogMessage.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/LogMessage/__init__.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/Patch/Patch.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/Patch/__init__.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/VideoClip/VideoClip.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/VideoClip/__init__.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/__init__.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/__init__.py +0 -0
- {actionstreamer-0.2.31 → actionstreamer-0.2.34}/README.md +0 -0
{actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/CommonFunctions/CommonFunctions.py
RENAMED
|
@@ -99,12 +99,16 @@ def send_signed_request(ws_config: WebServiceConfig, method: str, url: str, path
|
|
|
99
99
|
|
|
100
100
|
verify = not ws_config.ignore_ssl
|
|
101
101
|
|
|
102
|
-
# Adjust request method accordingly
|
|
103
102
|
if method.upper() == 'POST':
|
|
104
103
|
response = requests.post(url, headers=headers, data=body, verify=verify, timeout=ws_config.timeout)
|
|
105
104
|
elif method.upper() == 'GET':
|
|
106
105
|
response = requests.get(url, headers=headers, params=parameters, verify=verify, timeout=ws_config.timeout)
|
|
107
|
-
|
|
106
|
+
if method.upper() == 'PUT':
|
|
107
|
+
response = requests.put(url, headers=headers, data=body, verify=verify, timeout=ws_config.timeout)
|
|
108
|
+
elif method.upper() == 'PATCH':
|
|
109
|
+
response = requests.patch(url, headers=headers, params=parameters, verify=verify, timeout=ws_config.timeout)
|
|
110
|
+
elif method.upper() == 'DELTE':
|
|
111
|
+
response = requests.delete(url, headers=headers, params=parameters, verify=verify, timeout=ws_config.timeout)
|
|
108
112
|
|
|
109
113
|
status_code = response.status_code
|
|
110
114
|
response_string = response.content.decode('utf-8')
|
|
@@ -74,7 +74,7 @@ class EventWithNames(Event):
|
|
|
74
74
|
|
|
75
75
|
class RecordingParameters:
|
|
76
76
|
|
|
77
|
-
def __init__(self, height: int, width: int, fps: float, bitrate: int, vflip: int, hflip: int, encoding: str, segmentLengthSeconds: float, audio: int):
|
|
77
|
+
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):
|
|
78
78
|
self.height = height
|
|
79
79
|
self.width = width
|
|
80
80
|
self.fps = fps
|
|
@@ -168,7 +168,10 @@ def update_event(ws_config: WebServiceConfig, event_id: int, event_status: int,
|
|
|
168
168
|
|
|
169
169
|
ws_result.http_response_code = response_code
|
|
170
170
|
ws_result.http_response_string = response_string
|
|
171
|
-
|
|
171
|
+
|
|
172
|
+
if response_string:
|
|
173
|
+
if not response_string == '':
|
|
174
|
+
ws_result.json_data = json.loads(response_string)
|
|
172
175
|
|
|
173
176
|
except Exception as ex:
|
|
174
177
|
ws_result.code = -1
|
|
File without changes
|
{actionstreamer-0.2.31 → actionstreamer-0.2.34}/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.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/Health/__init__.py
RENAMED
|
File without changes
|
{actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/LogMessage/LogMessage.py
RENAMED
|
File without changes
|
{actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/LogMessage/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/VideoClip/VideoClip.py
RENAMED
|
File without changes
|
{actionstreamer-0.2.31 → actionstreamer-0.2.34}/ActionStreamer/WebService/VideoClip/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|