question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'useRemoteVideoTileState' hook is not returning anything

See original GitHub issue

The ‘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 Screenshot 2020-10-02 at 7 14 05 AM

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:closed
  • Created 3 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
p-fouchtcommented, Oct 2, 2020

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 the attendeeIdToTileId object is empty.

Can you start sharing video as a remote user, and see if the value is updated?

2reactions
p-fouchtcommented, Oct 1, 2020

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found