PublisherProperties default values

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?

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.

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.

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).

It seems a bug. We will take a look.

1 Like