You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the REST API to send a message to the stream's data channel, the message is delivered twice.
NOTE: the data channel setting is that messages are distributed to the publisher and all players.
Environment
Operating system and version: Ubuntu 20.04.6 LTS (GNU/Linux 5.8.0-63-generic x86_64)
Java version: openjdk version "17.0.10" 2024-01-16
Ant Media Server version: Enterprise Edition 2.9.0 20240405_1755
Browser name and version:
Steps to reproduce
Send a message to REST API (https://{antmediaserver.base.url}/v2/broadcasts/{streamId}/data)
Expected behavior
The message should be received once.
Actual behavior
The message is received twice by the viewer/callback URL (this part is incorrect), and once by the streamer (this part is correct).
The text was updated successfully, but these errors were encountered:
Hi @petarb1988,
Thanks for reporting the issue. I need to understand scenario better. Can you tell me how I can reproduce it with sample pages? Are you using WebRTC publish and play pages or conference page? Where and how you call data REST method?
We're using mobile only so far but I have tested the issue with the Play page on an active stream and a test message sent through the REST data channel API - https://{antmediaserver.base.url}/WebRTCAppEE/rest/v2/broadcasts/{streamId}/data (the link in the original post is wrong, my mistake) - also is printed twice in the data channel messages.
So set up a working stream, access it through the Play page, click Options so the data channel messages box opens and send a message using the API URL I mentioned above. It should print once in the messages box but it prints twice.
Short description
When using the REST API to send a message to the stream's data channel, the message is delivered twice.
NOTE: the data channel setting is that messages are distributed to the publisher and all players.
Environment
Steps to reproduce
Expected behavior
The message should be received once.
Actual behavior
The message is received twice by the viewer/callback URL (this part is incorrect), and once by the streamer (this part is correct).
The text was updated successfully, but these errors were encountered: