# Hide video screen on audio only call streamCreated

**URL:** <https://openvidu.discourse.group/t/hide-video-screen-on-audio-only-call-streamcreated/2742>\
**Category:** How to implement?\
**Tags:** v2\
**Created:** [February 23, 2021, 9:35pm UTC](https://openvidu.discourse.group/t/hide-video-screen-on-audio-only-call-streamcreated/2742 "2021-02-23T21:35:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dustin](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@Dustin](https://openvidu.discourse.group/u/Dustin)\
**Post date:** [February 23, 2021, 9:35pm UTC](https://openvidu.discourse.group/t/hide-video-screen-on-audio-only-call-streamcreated/2742/1 "2021-02-23T21:35:43Z")

</div>

You get a video call screen in the app by default for each participant, I only want to see the video of the device itself so for example myself and subscribe to all other audio participants without seeing them as an empty video screen.

I have tried to add the subscriberProperties, but even then the video block in html is available.

```
this.session.on('streamCreated', (event: StreamEvent) => {
      var subscriberProperties = {insertMode: 'append', subscribeToAudio: true, subscribeToVideo : event.stream.hasVideo};

      const subscriber = this.session.subscribe(event.stream, undefined);

      subscriber.on('streamPlaying', (e: StreamManagerEvent) => {
        this.updateLayout();
        (<HTMLElement>subscriber.videos[0].video).parentElement.classList.remove('custom-class');
      });

      const newUser = new UserModel();
      newUser.setStreamManager(subscriber);
      newUser.setConnectionId(event.stream.connection.connectionId);
      const nickname = event.stream.connection.data.split('%')[0];
      try {
        newUser.setNickname(JSON.parse(nickname).clientData);
      } catch (err) {
        newUser.setNickname(nickname);
      }
      newUser.setType('remote');
      newUser.setUserAvatar(this.openViduSrv.getRandomAvatar());

      this.remoteUsers.push(newUser);
      this.sendSignalUserAvatar(this.localUser);
      this.buttonsVisibility = 'out';
    });

```

So how can I subscribe to the audio stream without adding something to the html?

---

<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:** [March 3, 2021, 2:50pm UTC](https://openvidu.discourse.group/t/hide-video-screen-on-audio-only-call-streamcreated/2742/2 "2021-03-03T14:50:11Z")

</div>

If you don’t add any Video or Audio HTML Elements you won’t hear the audio subscribed.

As workaround, you can hide the video element when the videoActive property is set to `false` throught css.

[Here](https://github.com/OpenVidu/openvidu-call/blob/59dd6675a84ac20fe0a00b51bd76a0d208e49592/openvidu-call-front/src/app/video-room/video-room.component.html#L57), OpenVidu Call make smaller the video when `videoActive` is `false`. You can do the same hiding the video instead.
