Comments (5)
Thanks for your feedback.
The user-left
event was fired because we need to use this event to trigger the Agora Native SDK's decoder releasing. I think this is a bad design because this workaround will affect the customer's application logic.
We are planning to solve it in v0.2.0
, just like #8 , we will redesign the unpublish mechanism in v0.2.0.
from agorawebsdk-ng.
Thanks for the reply. Do you have any hints or suggestions on how applications can distinguish unpublishing and channel leaving at this point?
Related SO question -
https://stackoverflow.com/questions/62027242/the-user-left-event-is-fired-when-unpublish-method-is-called
from agorawebsdk-ng.
There are two differences between unpublishing and leaving channel:
user-left
event'sreason
param. If the remote peer is unpublished,reason
will be"BecomeAudience"
- if this
user-left
event is caused by the remote peer unpublishing, you will receiveuser-joined
about 10s after receivinguser-left
So if you receive a user-left
with "BecomeAudience"
and receive user-joined
in 10s, it is unpublishing, otherwise, it is channel leaving.
from agorawebsdk-ng.
This definitely can address the application logic issues until the SDK v2 is brought out.
In fact, BecomeAudience
is enough for the application to change its state correctly and the subsequent user-joined
is the lifesaver it can use.
Great patch!
from agorawebsdk-ng.
This issue has been fixed in v4.0.0
( release note)
from agorawebsdk-ng.
Related Issues (20)
- If the connection is lost and the token is about to expire after reestablishing the connection agora doesn't fire connection-state-change event HOT 1
- webNG sdk publish和unpublish事件与小程序互通问题 HOT 1
- TO ADD NEW FEATURES HOT 1
- RR HOT 1
- Can't rejoin channel after token has expired HOT 1
- Audio issues in safari browser in MacOS HOT 2
- How can I join/rejoin an ongoing meeting? HOT 1
- TypeError: Cannot assign to read only property '_trust_audio_mute_state_' of object '#<Ho>' HOT 1
- Video goes black while the other side is uploading a file or switch background mode HOT 5
- Sometimes in user-published method I don't receive audio track HOT 14
- can not receive user-published event but see log [remote user xxx published video/audio] HOT 9
- "export 'default' (imported as 'AgoraRTC') was not found in 'agora-rtc-sdk-ng' HOT 11
- If a user for some reason has some network restrictions, then the client keeps on trying to join infinitely. HOT 1
- How to connect native client to web client ? HOT 5
- Unable to connect Web sdk user to native Sdk user HOT 2
- In chrome, if a tab with the stream is inactive for some time the readyState of the media tracks becomes ended and they stop playing HOT 1
- Unable to change the time in AudioVolumeIndicator HOT 1
- subscribe user 2444849064 error TypeError: b is not a function
- How to eliminate the delay when you press Stop Screen Sharing HOT 2
- React Demo bug HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agorawebsdk-ng.