-
Notifications
You must be signed in to change notification settings - Fork 105
Difference between onSubscribe / onError and videoEnabled / videoDisabled #13
Comments
@webdif I don't believe you can use https://tokbox.com/developer/sdks/js/reference/Subscriber.html#.event:videoEnabled These two Subscriber events are explained in detail in the above links. Is there something confusing you about them? As for the Publisher callback props, If this is still confusing, maybe you can describe what you're trying to achieve and I can suggest the correct usage. |
Thanks a lot for your response and your help 👍 Indeed, I have these events on What I'm trying to achieve is to update my UI when something is changing. Currently, I fire redux actions on It's working, but I often have some errors in console. I saw that 0.4.0 add some sucess/error handlings with convenient callback, so I'm trying to implement these, and have a better management of errors, disconnect, reconnect. For example, a log in chrome console that showing errors or warning that are not catched yet: |
Sure, no problem. The
They will not be called for connectivity issues. You'll likely want to listen for Session events such as sessionConnected, sessionDisconnected, sessionReconnected and sessionReconnecting. Then pass down the event to The session events are defined here: They are passed into And the connectivity state is passed down to the child component here: |
Thanks a lot for all this! I have some docs to read 🤓 |
In a component using
opentok-react
, I'm currently doing something like this:I'm glad to see that 0.4.0 add some error handling support and other event stuff, like
onPublish
andonError
. But I'm not sure to understand the difference between the two andvideoDisabled
/videoEnabled
.Can you help, please? 🙏
The text was updated successfully, but these errors were encountered: