Comments (6)
I think I might know what the issue here. Are you calling liveState.set(undefined)
, and is that when the listener isn't being called? Or have you tried setting it to other values, such as a string or object?
Knowing what values are being passed in as your initial state and set param would be super helpful, thanks!!
from live-share-sdk.
I am not calling liveState.set(undefined) . I always call liveState set with a JSON object.
from live-share-sdk.
Do all members need to call livestate.initialize()? What state parameters should I specify if I don't want visitors to update the live state?
from live-share-sdk.
I was just able to fix it by calling initialize() for the visitors as well as the host, even though I don't want to set the state for the visitors.
from live-share-sdk.
Hey Michael, the initial state on .initialize() is not broadcasted out and will not trigger a changed event. It is just the default state, which you could make undefined in the initializerc and when the presenter connects you can then call .set("whatever")
on their client. Even if someone joins late, the initial state will not override what was there beforehand.
It's just a default value, since many use cases you don't want to have to have state start as undefined (eg countState.initialize(0)). The default state will be at that initial state until the remote state starts coming in, which will always override that default value.
from live-share-sdk.
And yes, for all of our DDS's, all users need to call .initialize(), since that is what starts listening for socket events.
from live-share-sdk.
Related Issues (20)
- [JS Bug]: Presence updates not emitted after PresenceState expires
- [Feature Request]: Disable sending position updates in viewOnly mode HOT 1
- [Bug]: live-share-react: "Cannot call changeState when liveState is undefined" HOT 8
- [JS Bug]: <insert title here>
- [Bug]: <insert title here> HOT 2
- [Feature Request]: can send position updates setting for media package
- [Task]: Clean up Dependabot PR's
- meeting.getAppContentStageSharingState() does not trigger callback on iOS HOT 2
- [Bug]: Presence object does not have localUser object HOT 3
- presenceChanged callback not getting called on Android Teams app. HOT 9
- Live Share not working HOT 2
- Unable to add Live Canvas sample to teams tabs HOT 3
- Role Vertification of LiveCanvas not working HOT 5
- [Feature Request]: Setting to prevent sending background events in object synchronizer
- [Feature Request]: Expose clientId in ExtendedMediaSessionActionDetails
- [Feature Request]: Access optimized `getClientInfo()` API without using `LivePresence`
- [Feature Request]: Setting for LiveCanvas to prevent local user from sending signals / making ops
- [Bug][LiveCanvas]: Laser Pointer and highlighter first and last position persists for non local clients
- [Feature Request]: Add local flag to `ExtendedMediaSessionDetails` for groupaction
- [JS Bug]: Event listener breaks video pause function HOT 7
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 live-share-sdk.