# Republish user's stream

**URL:** <https://openvidu.discourse.group/t/republish-users-stream/1001>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [May 27, 2020, 4:18pm UTC](https://openvidu.discourse.group/t/republish-users-stream/1001 "2020-05-27T16:18:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jin](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jin](https://openvidu.discourse.group/u/Jin)\
**Post date:** [May 27, 2020, 4:18pm UTC](https://openvidu.discourse.group/t/republish-users-stream/1001/1 "2020-05-27T16:18:15Z")

</div>

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

### DELETE `/api/sessions/<SESSION_ID>/stream/<STREAM_ID>` [ 🔗

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

 ![image](https://global.discourse-cdn.com/free1/uploads/openvidu/original/1X/e227ad1f84ee97da0a0dd3d2c2dc6e2756cd9c67.png)  
p.s. I saw this issue on git but can’t find link.  

> <https://github.com/OpenVidu/openvidu/issues/17>
>
> Hi,
> i wrote a application extrapoled from openvidu-insecure-js. In that application, there is a principal publisher (main speaker) and many subscribers. But...

---

<div class="post-metadata">

**Author:** ![Jin](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jin](https://openvidu.discourse.group/u/Jin)\
**Post date:** [May 27, 2020, 6:19pm UTC](https://openvidu.discourse.group/t/republish-users-stream/1001/2 "2020-05-27T18:19:56Z")

</div>

Plz help @micael.gallego

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [May 29, 2020, 11:27am UTC](https://openvidu.discourse.group/t/republish-users-stream/1001/3 "2020-05-29T11:27:40Z")

</div>

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.” ?

---

<div class="post-metadata">

**Author:** ![Jin](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jin](https://openvidu.discourse.group/u/Jin)\
**Post date:** [May 29, 2020, 1:48pm UTC](https://openvidu.discourse.group/t/republish-users-stream/1001/4 "2020-05-29T13:48:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [May 29, 2020, 5:30pm UTC](https://openvidu.discourse.group/t/republish-users-stream/1001/5 "2020-05-29T17:30:31Z")

</div>

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](https://docs.openvidu.io/en/2.14.0/api/openvidu-node-client/enums/openvidurole.html)

You can also use the [Session.signal](https://docs.openvidu.io/en/2.14.0/api/openvidu-browser/classes/session.html#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.

---

<div class="post-metadata">

**Author:** ![Jin](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jin](https://openvidu.discourse.group/u/Jin)\
**Post date:** [June 3, 2020, 2:23pm UTC](https://openvidu.discourse.group/t/republish-users-stream/1001/6 "2020-06-03T14:23:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [June 3, 2020, 3:34pm UTC](https://openvidu.discourse.group/t/republish-users-stream/1001/7 "2020-06-03T15:34:14Z")

</div>

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.
