react-native-opentok icon indicating copy to clipboard operation
react-native-opentok copied to clipboard

Support more then one Subscriber

Open philolo1 opened this issue 7 years ago • 10 comments

I dont think you support yet more then one subscriber, i need this feature and will do a pull request for this. I think for this purpose the subscriberview should get a streamId property.

philolo1 avatar Oct 27 '17 17:10 philolo1

+1 I need support multi subscriber

loctrandn avatar Oct 30 '17 04:10 loctrandn

@philolo1 What you mean about multiple subscribers? This library supports multiple session so you can connect with two sessions and then render two subscribers view with different sessionId prop.

Are you using few streams in one session?

dratwas avatar Oct 30 '17 21:10 dratwas

can I test Publisher & Subscriber in one Component at the same time with . one Session ID ?

RoyalDeveloper2015 avatar Oct 31 '17 07:10 RoyalDeveloper2015

Nope, because we're connecting with a session using token which is related to subscriber or publisher. I'm thinking if we can change our implementation, but Is it needed for you or it is just your test case?

dratwas avatar Oct 31 '17 07:10 dratwas

I'd like to build app similar to skype , there you can see you your video and others video . how can we implement like that using this SDK ?

RoyalDeveloper2015 avatar Oct 31 '17 07:10 RoyalDeveloper2015

I'm not sure if it is possible. I have to check. At this moment you can't achieve that with this library.

dratwas avatar Oct 31 '17 10:10 dratwas

its possible, you just need to use the streams instead of the sessions, i forked the library and made it worked, but my solution is not to good to merge it or do a pull request.

2017-10-31 19:09 GMT+09:00 Drapich Piotr [email protected]:

I'm not sure if it is possible. I have to check. At this moment you can't achieve that with this library.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/callstack/react-native-opentok/issues/51#issuecomment-340716579, or mute the thread https://github.com/notifications/unsubscribe-auth/AF_F5u4T9ZY2nNdd0qKgkm98TFWQmt2iks5sxvHMgaJpZM4QJWWk .

philolo1 avatar Oct 31 '17 10:10 philolo1

Ok, so I think we will implement this feature in next releases :)

dratwas avatar Oct 31 '17 10:10 dratwas

@philolo1 would you be able to share your fork that uses streams instead of sessions?

alexandermtang avatar Mar 07 '18 21:03 alexandermtang

@philolo1 can you share your fork? We're facing the same issue, when we want to subscribe multiple streams

siliconavengers avatar Jun 27 '19 08:06 siliconavengers