Fix native sync WebRTC offer (#129931)

This commit is contained in:
Robert Resch 2024-11-06 10:07:10 +01:00 committed by Franck Nijhof
parent 361e0d4fc7
commit 232a6868ff
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
2 changed files with 5 additions and 2 deletions

View File

@ -848,7 +848,10 @@ class Camera(Entity, cached_properties=CACHED_PROPERTIES_WITH_ATTR_):
]
config.configuration.ice_servers.extend(ice_servers)
config.get_candidates_upfront = self._legacy_webrtc_provider is not None
config.get_candidates_upfront = (
self._supports_native_sync_webrtc
or self._legacy_webrtc_provider is not None
)
return config

View File

@ -358,7 +358,7 @@ async def test_ws_get_client_config_sync_offer(
assert msg["success"]
assert msg["result"] == {
"configuration": {},
"getCandidatesUpfront": False,
"getCandidatesUpfront": True,
}