[英]How to access callbacks from the JS client when certain events happen in Ant Media Server?
Is there an event / callback that is accessible from the JS client to know when certain events like publish timeout happens?是否有可从 JS 客户端访问的事件/回调以了解某些事件(如发布超时)何时发生?
Yes, there is an event/callback message on WebSocket object. You can use callbackError
section like in this link: https://github.com/ant-media/StreamApp/blob/master/src/main/webapp/index.html#L735是的,WebSocket object 上有一个事件/回调消息。您可以使用此链接中的
callbackError
部分: https://github.com/ant-media/StreamApp/blob/master/src/main/webapp/index.html #L735
You can check this guide for all WebSocket messages: https://github.com/ant-media/Ant-Media-Server/wiki/WebRTC-WebSocket-Messaging-Reference#websocket-error-callbacks您可以查看本指南以了解所有 WebSocket 消息: https://github.com/ant-media/Ant-Media-Server/wiki/WebRTC-WebSocket-Messaging-Reference#websocket-error-callbacks
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.