# PublisherProperties default values

**URL:** <https://openvidu.discourse.group/t/publisherproperties-default-values/794>\
**Category:** How to implement?\
**Tags:** v2\
**Created:** [May 15, 2020, 4:35am UTC](https://openvidu.discourse.group/t/publisherproperties-default-values/794 "2020-05-15T04:35:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jan](https://openvidu.discourse.group/u/Jan)\
**Post date:** [May 15, 2020, 4:35am UTC](https://openvidu.discourse.group/t/publisherproperties-default-values/794/1 "2020-05-15T04:35:30Z")

</div>

Hello,  
we noticed that when on mobile when going from portrait video to landscape, the resolution of the video changed to the default `'640x480'`. Is `replaceTrack()` used in the background?  
I was wondering if there is an easy way to modify the `PublisherProperties` default values? Something similar to `setAdvancedConfiguration`?

---

<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:** [May 15, 2020, 9:00am UTC](https://openvidu.discourse.group/t/publisherproperties-default-values/794/2 "2020-05-15T09:00:04Z")

</div>

No replacetrack on the background. But the resolution IS changed when orientation changes (and when a shared screen is resized). The problem would be if it wouldn’t change. Besides, an event streamPropertyChanged will be fired.

"I was wondering if there is an easy way to modify the `PublisherProperties` default values? Something similar to `setAdvancedConfiguration`"  
I don’t understand this question. Yes, the way of modifying the default values of PublisherProperties is passing the values you want as PublihserProperties.

---

<div class="post-metadata">

**Author:** ![Jan](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jan](https://openvidu.discourse.group/u/Jan)\
**Post date:** [May 15, 2020, 9:28am UTC](https://openvidu.discourse.group/t/publisherproperties-default-values/794/3 "2020-05-15T09:28:01Z")

</div>

Thanks. I suspected some default resolution was in play when the properties changed, since it used 640x480 going to landscape. The real question is if we can cap the resolution to what is passed with the initially passed publisher properties.

---

<div class="post-metadata">

**Author:** ![Jan](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jan](https://openvidu.discourse.group/u/Jan)\
**Post date:** [May 20, 2020, 5:11am UTC](https://openvidu.discourse.group/t/publisherproperties-default-values/794/4 "2020-05-20T05:11:38Z")

</div>

As an example. ‘320x240’ is passed as resolution for initial publisher. ‘240x320’ is the resolution of the portrait video. Going to landscape, the desired resolution is ‘320x240’. In our case the resolution is automatically bumped up to ‘480x360’ and ‘640x480’ (flipped returning to portrait).

---

<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:** [May 22, 2020, 11:26pm UTC](https://openvidu.discourse.group/t/publisherproperties-default-values/794/5 "2020-05-22T23:26:25Z")

</div>

It seems a bug. We will take a look.
