Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Messages sent to data channel via REST API are delivered twice #6320

Open
petarb1988 opened this issue May 9, 2024 · 2 comments
Open

Messages sent to data channel via REST API are delivered twice #6320

petarb1988 opened this issue May 9, 2024 · 2 comments

Comments

@petarb1988
Copy link

petarb1988 commented May 9, 2024

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

  • 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

  1. 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).

@burak-58
Copy link
Contributor

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?

@petarb1988
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants