[BUG] on_play 回传的 id 和接口查询的 ID 不一致
作者: SatoriNya创建于 2026年7月5日更新于 2026年7月7日
标签bug
Description of the phenomenon
After pulling the whep, the id returned by the webhook on_play does not match the ID queried in the interface, for example, the data returned by the webhook is
{"mediaServerId":"jZTgLFl9Zk1NB5AG","app":"live","id":"668-46","ip":"192.168.50.100","params":"app=live&stream=df&viewerId=1db94209-78e9-41d7-b9db-dc766d0809a1&tabPlayId=71ab9f75-8ae3-4280-bece-94a19fe6d7d8&session=668-46","port":53214,"schema":"rtc","stream":"df","vhost":"__defaultVhost__"}But the actual data queried through the API is
{
"identifier": "670-46",
"local_ip": "::",
"local_port": 8000,
"peer_ip": "138.2.67.134",
"peer_port": 45306,
"typeid": "mediakit::WebRtcSession"
}The two ids do not match, and it is not possible to use the id of the webhook to kick the session when the id is required based on the id.
内容来源: ZLMediaKit/ZLMediaKit