comparison libervia/backend/plugins/plugin_xep_0167/__init__.py @ 4119:ece304ec7077

plugin XEP-0167: fix key used to store metadata: rel 424
author Goffi <goffi@goffi.org>
date Tue, 03 Oct 2023 15:18:25 +0200
parents 07370d2a9bde
children 832a7bdb3aea
comparison
equal deleted inserted replaced
4118:07370d2a9bde 4119:ece304ec7077
493 ) 493 )
494 494
495 answer_sdp = await answer_sdp_d 495 answer_sdp = await answer_sdp_d
496 496
497 parsed_answer = mapping.parse_sdp(answer_sdp) 497 parsed_answer = mapping.parse_sdp(answer_sdp)
498 session["peer_metadata"].update(parsed_answer["metadata"]) 498 session["metadata"].update(parsed_answer["metadata"])
499 for media in ("audio", "video"): 499 for media in ("audio", "video"):
500 for content in session["contents"].values(): 500 for content in session["contents"].values():
501 if content["desc_elt"].getAttribute("media") == media: 501 if content["desc_elt"].getAttribute("media") == media:
502 media_data = parsed_answer[media] 502 media_data = parsed_answer[media]
503 application_data = content["application_data"] 503 application_data = content["application_data"]