Republish user's stream

Hello everyone
I saw this rest api of delete permission of publish stream of user

DELETE /api/sessions/<SESSION_ID>/stream/<STREAM_ID> [ :link:

but I hope after delete user’s stream by main room manager and republish.
so main room manager can manage user’s stream.

how to handle this?
thnaks


p.s. I saw this issue on git but can’t find link.

Plz help @micael.gallego

Hello Jin,

I’m sorry, but I don’t understand your question. What do you mean by
“but I hope after delete user’s stream by main room manager and republish.” ?
and then
“so main room manager can manage user’s stream.” ?

thanks
I mean:

user create session - this user will be room manager.
and other users login this session, they can be publisher and subscriber.
but all of them can’t manage room’s setting.
only created session user(teacher) can close session.
and teacher can manage user’s camera, audio publish functions.
so all users can only listen and see teacher’s camera only and if teacher allow one user, then she or he can answer or show their screen.

so publish and republish means for me
teacher can maange user’s screen and audio function so others can only see and listen by teacher’s control
this means…

thanks

So your question is if it is possible to have a single user with “administration” role and others without it?

Yes, you can. OpenVidu Server provides these roles for the client-side: https://docs.openvidu.io/en/2.14.0/api/openvidu-node-client/enums/openvidurole.html

You can also use the Session.signal method from openvidu-browser to communicate actions from one specifc user to other specfic user(s) (or everybody in broadcast). Though this option is not really secure, as a JavaScrtip hacker connected to the session could technically send this signal from any client-side.

And finally you can always use you very own comunnication channel between the client-side and your own server-side to send any message you want between users, secured in any way you desire.

1 Like

thanks a lot.
Actually I develop custom version of waht I want by nuxt.
I will try to contribute on openvidu by this nuxt version…
I appreciate your help

Jin

p.s. publish means user’s camera and audio can show to others.
is there any option to show only audio to others?
thanks

Yes. To only reproduce audio just don’t create an HTML video element (when initializing a Publisher or a Subscriber) and simply insert the internal MediaStream to an HTML audio element.