matrice-streaming 0.1.56__py3-none-any.whl → 0.1.57__py3-none-any.whl

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.
@@ -544,11 +544,15 @@ class DynamicCameraManager:
544
544
  simulate_video = True
545
545
 
546
546
  # Try to get signed URL if we have gateway_util
547
- if self.gateway_util and source:
547
+ # Always fetch presigned URL for FILE cameras - the API uses camera_id,
548
+ # not the local simulationVideoPath, to look up and sign the URL
549
+ if self.gateway_util:
548
550
  try:
549
551
  stream_url_data = self.gateway_util.get_simulated_stream_url(camera_id)
550
552
  if stream_url_data and stream_url_data.get('url'):
551
553
  source = stream_url_data['url']
554
+ else:
555
+ self.logger.warning(f"No signed URL returned for FILE camera {camera_id}, using raw path")
552
556
  except Exception as e:
553
557
  self.logger.warning(f"Failed to get signed URL for camera {camera_id}: {e}")
554
558
 
@@ -1105,11 +1109,15 @@ class DynamicCameraManagerForWorkers:
1105
1109
  simulate_video = True
1106
1110
 
1107
1111
  # Try to get signed URL if we have gateway_util
1108
- if self.gateway_util and source:
1112
+ # Always fetch presigned URL for FILE cameras - the API uses camera_id,
1113
+ # not the local simulationVideoPath, to look up and sign the URL
1114
+ if self.gateway_util:
1109
1115
  try:
1110
1116
  stream_url_data = self.gateway_util.get_simulated_stream_url(camera_id)
1111
1117
  if stream_url_data and stream_url_data.get('url'):
1112
1118
  source = stream_url_data['url']
1119
+ else:
1120
+ self.logger.warning(f"No signed URL returned for FILE camera {camera_id}, using raw path")
1113
1121
  except Exception as e:
1114
1122
  self.logger.warning(f"Failed to get signed URL for camera {camera_id}: {e}")
1115
1123
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice_streaming
3
- Version: 0.1.56
3
+ Version: 0.1.57
4
4
  Summary: Common server utilities for Matrice.ai services
5
5
  Author-email: "Matrice.ai" <dipendra@matrice.ai>
6
6
  License-Expression: MIT
@@ -10,7 +10,7 @@ matrice_streaming/deployment/inference_pipeline.py,sha256=pBrruqg0AlskvewrxnA76b
10
10
  matrice_streaming/deployment/streaming_gateway_manager.py,sha256=GtZosjeC4jj_hBOjAf5CNxUmCN0JBiuLVM-MKq5Sf4g,28787
11
11
  matrice_streaming/deployment/todo.txt,sha256=J6NFH2NZDiFWqZ7wH9_m_lHGLcEHlCysVqYLxNtSBlg,65
12
12
  matrice_streaming/streaming_gateway/__init__.py,sha256=qwTHom7ZKvzkFCAWNfl_w5eMyvNf8ysN044W5JAcqvg,912
13
- matrice_streaming/streaming_gateway/dynamic_camera_manager.py,sha256=zGWYO9ulrq7wxDBbBxzBufjgydqBPlT1CFMcBeAeLh4,47103
13
+ matrice_streaming/streaming_gateway/dynamic_camera_manager.py,sha256=DCXyufxK_z4STFtmU82Jt_i3bCOYpLQHh4Rqn9YfaDA,47717
14
14
  matrice_streaming/streaming_gateway/event_listener.py,sha256=7x-TKjsAsSFXlGq88bfGB1IR8A5rJTrAotJEBklyofk,3084
15
15
  matrice_streaming/streaming_gateway/metrics_reporter.py,sha256=N9At7kEvY6mkMzibdcSzyo4JJYhBiy9Kxqtd0AfuGCY,46670
16
16
  matrice_streaming/streaming_gateway/streaming_action.py,sha256=o6favSDGY0wTMBCsx1lai8x7aBSDyGswAvDFIvsPYgA,30189
@@ -47,8 +47,8 @@ matrice_streaming/streaming_gateway/debug/debug_streaming_gateway.py,sha256=ZiDg
47
47
  matrice_streaming/streaming_gateway/debug/debug_utils.py,sha256=jWcSBgrk_YVt1QzSyw6geX17YBnTvgVdA5ubqO531a0,10477
48
48
  matrice_streaming/streaming_gateway/debug/example_debug_streaming.py,sha256=-gS8zNDswAoj6oss66QQWYZhY24usfLiMH0FFK06vV0,7994
49
49
  matrice_streaming/streaming_gateway/debug/test_videoplayback.py,sha256=s_dgWkoESiuJHlUAf_iv4d7OGmAhwocwDZmIcFUZzvo,11093
50
- matrice_streaming-0.1.56.dist-info/licenses/LICENSE.txt,sha256=_uQUZpgO0mRYL5-fPoEvLSbNnLPv6OmbeEDCHXhK6Qc,1066
51
- matrice_streaming-0.1.56.dist-info/METADATA,sha256=gQyVRqmCbwScc-sCFm-kME9k5mm3GLrpeh_epVWrp5s,2477
52
- matrice_streaming-0.1.56.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
53
- matrice_streaming-0.1.56.dist-info/top_level.txt,sha256=PM_trIe8f4JLc90J871rNMYGVM3Po9Inx4As5LrCFUU,18
54
- matrice_streaming-0.1.56.dist-info/RECORD,,
50
+ matrice_streaming-0.1.57.dist-info/licenses/LICENSE.txt,sha256=_uQUZpgO0mRYL5-fPoEvLSbNnLPv6OmbeEDCHXhK6Qc,1066
51
+ matrice_streaming-0.1.57.dist-info/METADATA,sha256=-Emhhp6AnLTCaMcgK4ZtqhAYBKWEVmryHBlVWIj97Q4,2477
52
+ matrice_streaming-0.1.57.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
53
+ matrice_streaming-0.1.57.dist-info/top_level.txt,sha256=PM_trIe8f4JLc90J871rNMYGVM3Po9Inx4As5LrCFUU,18
54
+ matrice_streaming-0.1.57.dist-info/RECORD,,