# publisher.publishVideo is not a function

**URL:** <https://openvidu.discourse.group/t/publisher-publishvideo-is-not-a-function/1803>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [August 13, 2020, 3:02pm UTC](https://openvidu.discourse.group/t/publisher-publishvideo-is-not-a-function/1803 "2020-08-13T15:02:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BDE1200asdf](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@BDE1200asdf](https://openvidu.discourse.group/u/BDE1200asdf)\
**Post date:** [August 13, 2020, 3:02pm UTC](https://openvidu.discourse.group/t/publisher-publishvideo-is-not-a-function/1803/1 "2020-08-13T15:02:31Z")

</div>

I have an application that involved moderators and publishers. Moderators can give and take away certain permissions to interact with the interface from each other. I would like each moderator to be able to publishVideo() and publishAudio() on the other moderators streams depending on their set permissions. It works fine if I publishVideo() and publishAudio() on my own connection/stream but I get the error “publisher.publishVideo is not a function” when i attempt to do the same on one of the other moderator streams.

can a moderator not control other moderators video and audio streams?

---

<div class="post-metadata">

**Author:** ![CSantosM](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/csantosm/32/16_2.png) [@CSantosM](https://openvidu.discourse.group/u/CSantosM)\
**Post date:** [August 13, 2020, 3:23pm UTC](https://openvidu.discourse.group/t/publisher-publishvideo-is-not-a-function/1803/2 "2020-08-13T15:23:18Z")

</div>

> [@BDE1200asdf](#):
>
> the error “publisher.publishVideo is not a function” when i attempt to do the same on one of the other moderator streams.

First of all, i recommend to you read the openvidu-browser API [OpenVidu Browser - v2.15.0](https://docs.openvidu.io/en/2.15.0/api/openvidu-browser/)

Then, you should send an event (signal) from your moderator to the participant. This participant has to listen this event type and disable the audio or video when the event is received.

You also should read  
[https://docs.openvidu.io/en/2.15.0/cheatsheet/send-messages/#send-text-messages-between-users](https://docs.openvidu.io/en/2.15.0/cheatsheet/send-messages/#send-text-messages-between-users)  
[SignalEvent | OpenVidu Browser - v2.15.0](https://docs.openvidu.io/en/2.15.0/api/openvidu-browser/classes/signalevent.html)

Cheers
