Replies: 1 comment 4 replies
-
If your application has complex chat functionality and event management, I recommend using WebSockets with a library like Socket.IO for those features, while relying on Ant Media Server solely for audio and video streaming. This approach provides greater flexibility and allows you to handle chat and events more efficiently. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone
I'am quite new to ant server technology. Been using it for last couple weeks to make some simple streaming service with chat feature. For chat i wanted to use data channel that is available in ant server (streaming through webrtc).
Currently in application settings i can enable/disable data transfer, or allow only to send data by publisher, or by all. I would like to have functionality where everybody can receive the data (that is accomplished by setting data channel to "Publisher and all Players") but nobody can send the data except through rest api. This way i can use my own app as a man in the middle to control those messages and block some stuff (im not only sending chat messages but also various events, and i dont want somebody to send those to everybody just py preparing specific message).
So what i have currently is:
Client are receiving data by standard notification in the callback "data_received", then if they want to send message, they are calling ajax request that goes to my app. My app checks if its correct then makes api call to ant rest api to broadcast that message. The only thing im missing is to block connected users to send anything through data channel without verification.
Beta Was this translation helpful? Give feedback.
All reactions