# Gallery View as Default (Web SDK)

**URL:** <https://devforum.zoom.us/t/gallery-view-as-default-web-sdk/50658>\
**Category:** Feature Requests\
**Created:** [May 20, 2021, 9:22am UTC](https://devforum.zoom.us/t/gallery-view-as-default-web-sdk/50658 "2021-05-20T09:22:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexmayo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexmayo/32/27289_2.png) [@alexmayo](https://devforum.zoom.us/u/alexmayo)\
**Post date:** [May 20, 2021, 9:22am UTC](https://devforum.zoom.us/t/gallery-view-as-default-web-sdk/50658/1 "2021-05-20T09:22:01Z")

</div>

Hi,

One sought after feature for the Web SDK is to have the ability to enable gallery view by default, or to be able to programmatically switch between gallery and speaker view. Some examples of how this could be implemented can be found below.

* * *

**Upon Initialisation**  
Add an additional ‘viewLayout’ property which can either be ‘gallery’ or ‘as’. By default, ‘as’ will be set and will show the active speaker, as not to break any existing implementations.

```javascript
ZoomMtg.init({
   viewLayout: 'gallery', //Can be 'gallery' or 'as' (default).
});

```

* * *

**Programmatically**  
Add a new method to the ZoomMtg class which allows the user to change the view layout on-the-fly.

```javascript
ZoomMtg.viewLayout('gallery');

```

* * *

**Additional Functionality**  
It may also be useful to allow users to specify the number of participants/attendees which can be in the room before gallery view is automatically activated. Once the number of participants meets or exceeds the value set here, gallery view will automatically be activated.

```javascript
ZoomMtg.init({
   minimumParticipantsForGalleryView: 5, //Default Infinity
});

```

* * *

Thanks for reading!  
Alex

---

<div class="post-metadata">

**Author:** ![MelisaB](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@MelisaB](https://devforum.zoom.us/u/MelisaB)\
**Post date:** [September 30, 2021, 6:47am UTC](https://devforum.zoom.us/t/gallery-view-as-default-web-sdk/50658/2 "2021-09-30T06:47:43Z")

</div>

This is definitely something that should be prioritized and implemented. Not sure why it isn’t there already, since mobile SDK has support for this feature.

---

<div class="post-metadata">

**Author:** ![Uhliber](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/uhliber/32/42131_2.png) [@Uhliber](https://devforum.zoom.us/u/Uhliber)\
**Post date:** [October 27, 2022, 9:52am UTC](https://devforum.zoom.us/t/gallery-view-as-default-web-sdk/50658/3 "2022-10-27T09:52:36Z")

</div>

Is this not possible yet? I need updates.
