# joinRoom Message question

**URL:** https://openvidu.discourse.group/t/joinroom-message-question/3826
**Category:** Issues developing apps
**Tags:** v2
**Created:** [March 23, 2022, 4:56am UTC](https://openvidu.discourse.group/t/joinroom-message-question/3826 "2022-03-23T04:56:28Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [March 23, 2022, 10:32am UTC](https://openvidu.discourse.group/t/joinroom-message-question/3826/2 "2022-03-23T10:32:40Z")

</div>

Hi,

Glad you resolved the problem with publishVideo RPC call. It would be great if you could explain what was exactly happening to you. I will update all of the entries you opened about that topic, which are quite a few. So if anybody encounters the same problem, they will have a proper answer:

- [What type is publishVideo : videoDimensions?](https://openvidu.discourse.group/t/what-type-is-publishvideo-videodimensions/3804)
- [Please check my publishVideo json message](https://openvidu.discourse.group/t/please-check-my-publishvideo-json-message/3811)
- [Does the publishVideo JSON need a filter entry?](https://openvidu.discourse.group/t/does-the-publishvideo-json-need-a-filter-entry/3809)
- [API error help (java.lang.NullPointerException)](https://openvidu.discourse.group/t/api-error-help-java-lang-nullpointerexception/3789)
- [PublishVideo : Java.lang.NullPointerExeption Error](https://openvidu.discourse.group/t/publishvideo-java-lang-nullpointerexeption-error/3798)
- [publishVideo server RPC difference between v2.20.0 and v2.21.0](https://openvidu.discourse.group/t/publishvideo-server-rpc-difference-between-v2-20-0-and-v2-21-0/3799)

About your new question. joinRoom RPC call brings the information of the **already connected participants**. If a user connects to the session and there is other user alreadt connected to it and it is publishing, the the result of the response for the second user will have a property like this (see [OpenVidu Server RPC protocol - OpenVidu Docs](https://docs.openvidu.io/en/2.21.0/developing/rpc/#joinroom)):

```auto
"value": [
    {
        "createdAt": 1646820435398,
        "id": "con_Ud1Rk3GbYu",
        "metadata": "TestClient",
        "streams": [
            {
                "audioActive": true,
                "createdAt": 1646820436419,
                "filter": {},
                "frameRate": 30,
                "hasAudio": true,
                "hasVideo": true,
                "id": "str_CAM_KDeZ_con_Ud1Rk3GbYu",
                "typeOfVideo": "CAMERA",
                "videoActive": true,
                "videoDimensions": "{\"width\":640,\"height\":480}"
            }
        ]
    }
]

```

There will be no objects with Connections in that property if the user **is the first one calling joinRoom**.  
That user will have to listen to **participantJoined** and **participantPublished** RPC events to know when other user has connected and has published.

---

_[View the full topic](https://openvidu.discourse.group/t/joinroom-message-question/3826)._
