# How Dynamically Set Video Size?

**URL:** <https://openvidu.discourse.group/t/how-dynamically-set-video-size/1529>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [July 19, 2020, 7:17am UTC](https://openvidu.discourse.group/t/how-dynamically-set-video-size/1529 "2020-07-19T07:17:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![umargarga](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/umargarga/32/638_2.png) [@umargarga](https://openvidu.discourse.group/u/umargarga)\
**Post date:** [July 19, 2020, 7:17am UTC](https://openvidu.discourse.group/t/how-dynamically-set-video-size/1529/1 "2020-07-19T07:17:05Z")

</div>

Hi, I’m using OpenVidu Ionic. And I’ve found out that the frameRate was set to 30 on the initPublisher function.

Is there a way to make it dynamic in such a way that the screen will be shared based on the number of participants?

At the moment, it left the screen blank when it one or fewer people connected.

Thank you for the wonderful job you’re doing here.

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [July 27, 2020, 11:08am UTC](https://openvidu.discourse.group/t/how-dynamically-set-video-size/1529/2 "2020-07-27T11:08:34Z")

</div>

AFAIK you only can change bandwidth dynamically

> <https://stackoverflow.com/questions/57400849/webrtc-change-bandwidth-receiving-invalidmodificationerror-on-chrome>
