'useRemoteVideoTileState' hook is not returning anything
See original GitHub issueThe ‘useRemoteVideoTileState’ hook is not returning anything on addition of new participants in the meeting.
const { tiles, attendeeIdToTileId } = useRemoteVideoTileState();
Expected behaviour
It should return the updated object mapping attendeeIdToTileId every time a new user joins the meeting as specified in the docs.
But it repeatedly returns a blank object.
Screenshots
Image from the docs specifying the hooks return values
The hook not returning anything causes my functional logic to break (Below only two video tiles should be rendered) Here the two tiles depict 2 remote users who have joined in on a chime meeting
Desktop OS: macOS Catalina Browser: Chrome Version: 85
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
useRosterState and useRemoteVideoTileState issue #519
I am detecting the change using useEffect hook in React. I am currently using:... ... So why I am not gettting the value...
Read more >amazon-chime-sdk-component-library-react
First, you need to fetch the meeting and attendee data from Chime's ... use the useToggleLocalMute hook which returns a function to toggle...
Read more >React hooks not working when imported from local library
You are not adhering to the Rules of Hooks, specifically in your case, calling a hook from a standard javascript function.
Read more >Understanding common frustrations with React Hooks
React Hooks can be frustrating despite their popularity and widespread use. Learn about some of the drawbacks to using React Hooks.
Read more >Some reasons for disliking react hooks - Daniel Rotter
This useStateWithDouble hook returns not only the value itself and a function to set it, but also the doubled value, which could then...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah sorry - I might have misunderstood, I’ll re-open!
From the images, it looks like you’re pulling the
attendeeIdToTileId
property from the state returned from useRemoteVideoTileState.The
attendeeIdToTileId
value is an empty object, which is the correct state when there aren’t any remote users sharing video. In your screenshot, it does not look like there are any remote users sharing their video, which should be why theattendeeIdToTileId
object is empty.Can you start sharing video as a remote user, and see if the value is updated?
Hi ronork,
The useRemoteVideoTileState hook returns the state associated with remote videos being shared in the meeting session. It doesn’t provide the list of attendees (See useRosterState and useAttendeeStatus for state associated with attendees)