Symptom
I am subscribed to multiple streams in my session, but I can only see one subscriber.
Applies To
- Video API
- Subscribers
Resolution
One possibility is that each time you subscribe, you set the Subscriber element to the same div. If you are manually creating a div inside the streamCreated handler on the session object, make sure that you are specifying a unique div id for each stream. A common technique is to append the streamId to the name of the div to make it unique. Inside the streamCreated event, you can obtain the streamId as event.stream.streamId.
It is also possible that you are not subscribing to streams when you think you are. Place a log statement in your 'streamCreated' event handler that increments a counter for each Subscriber. This way, you know how many streams you have actually subscribed to.
If you can hear the other Subscribers but not see them, you may have gone into Audio-Only Fallback. See How do I know if I have gone into Audio Only Fallback mode?
Articles in this section
- How to use Completion handler for Exception Handling
- Firefox Pre-call test not supported
- Error Creating Session Using Vonage Video API .NET SDK
- Unable to Create Session Even Though API Key and Secret Are Valid
- HTTP 415 Error When Archiving Video Session
- Troubleshooting Invalid JWT When Creating a Video Session using REST API
- Camara Still in Use after Session Disconnect on Android
- Token Shows as Invalid
- HTTP 400 Error When Archiving Video Session
- 1541 Timed out while attempting to publish Error