- Newest
- Most votes
- Most comments
Based on the information provided, it appears that the behavior you're experiencing is expected with the current configuration of your IVS Realtime stage and participant strategies.
The STAGE_PARTICIPANT_JOINED
event is typically triggered when a participant joins the stage and is ready to publish or be subscribed to. In your case, the "listener" participants are not publishing any streams and are not being subscribed to by anyone else, which is likely why you're not seeing these events for them.
To address this issue and receive STAGE_PARTICIPANT_JOINED
events for "listener" participants without requiring them to publish a stream, you could try the following approaches:
-
Modify the strategy for other participants (including speakers) to subscribe to listeners, even if it's just temporarily. This might trigger the join event for listeners. You could set
SubscribeType.AUDIO_ONLY
orSubscribeType.AUDIO_VIDEO
for listeners in theshouldSubscribeToParticipant
function, then immediately unsubscribe if needed. -
Consider adding a dummy stream for listeners to publish, which doesn't actually transmit any data but satisfies the publishing requirement. This could be a silent audio stream or a blank video stream.
-
Explore using the IVS Real-Time Streaming API to list stage participants. You could periodically call the
ListStageParticipants
API to get an up-to-date list of all participants, including listeners. -
If possible, adjust your application logic to not rely solely on the
STAGE_PARTICIPANT_JOINED
event for tracking listener presence. You might need to implement a custom solution using a separate signaling mechanism (like AWS AppSync or Amazon IVS Chat) to track listener join/leave events.
It's important to note that the exact behavior of IVS Realtime with regards to non-publishing participants may vary, and the service might have limitations or specific requirements for triggering events for such participants. If these suggestions don't resolve the issue, you may need to contact AWS support for more specific guidance on handling listener participants in your use case.
Sources
Publishing & Subscribing with the IVS Android Broadcast SDK | Real-Time Streaming - Amazon IVS
Publishing & Subscribing with the IVS iOS Broadcast SDK | Real-Time Streaming - Amazon IVS
Community | Live Streaming from Unity - Real-Time Playback (Part 7)
Community | Build a UGC Live Streaming App with Amazon IVS: Broadcast Real-Time with Multi-Hosts (Lesson 4.3)
Relevant content
- asked 6 months ago
- asked a year ago