Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

How do we subscribe to all subscribers? #29

Open
meljason opened this issue Mar 31, 2021 · 0 comments
Open

How do we subscribe to all subscribers? #29

meljason opened this issue Mar 31, 2021 · 0 comments

Comments

@meljason
Copy link

I am trying to create a group video call and normally in pure vanilla JS, I would do session.on('streamCreated', event) then just subscribe to the publisher. But using this hook, I tried to put

subscribe({
	streams,
	element: 'subscriber',
	options: {
		insertMode: 'append',
	},
});

In my useEffect, but it says that subscribe is not a function.

Also when I try to console log "streams" from opentokProps, it is undefined. Can I get more clarification about this?

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant