amazon-chime-sdk-component-library-react: 'useRemoteVideoTileState' hook is not returning anything
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
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
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (9 by maintainers)
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)
Thanks @p-foucht really appreciate you helping out in this entire issue.
Chatted offline - Here is how the demo handles test sound for speaker output
Sure, I will contact you via email
I have updated the bug above to give you better clarity I think you misunderstood and closed the bug…the problem that I am facing is with the useRemoteVideoTileState its not returning any of the values as specified in the docs,would really appreciated if you could look into this again. Let me know in case you need any additional information on this bug.