We are having issues broadcasting portrait orientation via mobile devices in RTC. It seems Flashphoner is forcing landscape orientation even forcing portrait constraints. We are passing the following constraints in the method session.createStream():
{
"video":{
"width":{
"ideal":240,"min":180,"max":240
},
"height":{
"ideal":426,"min":320,"max":426
},
"minBitrate":512,
"frameRate":30,
"deviceId":"01b7fc4ca1db683de1b9cd516fba281f61797605809e734c2dde5db5aa564d44"
},
"audio":{
"autoGainControl":false,
"bitrate":64,
"deviceId":"01b7fc4ca1db683de1b9cd516fba281f61797605809e734c2dde5db5aa564d44"
}
}
But the Flashphoner WEBSDK is overwriting and publishing the video with these constraints:
{
video: {
width: 320,
height: 240,
minBitrate: 512,
frameRate: {
ideal: 30
},
deviceId: "01b7fc4ca1db683de1b9cd516fba281f61797605809e734c2dde5db5aa564d44"
}
audio: {
autoGainControl: false,
bitrate: 64,
deviceId: "01b7fc4ca1db683de1b9cd516fba281f61797605809e734c2dde5db5aa564d44"
}
customStream: undefined
}
In your documentation we have found the param disableConstraintsNormalization at the function getMediaAccess, but it seems this param is not working at getMediaAccess(). We are looking to override the constraints at session.createStream to force the portrait mode.
1 - How can we do that?
2 - How the Flashphoner constraint normalization works? Does it tests each resolution until it finds one that is compatible?
3 - What is the best approach to broadcast a video in portrait mode and force the front camera in mobile devices?
4 - Is there a way to know which camera is being broadcasted when requesting permission and broadcasting the first/default camera available?
5 - Is there a way to disable the console.log?
Thanks,
{
"video":{
"width":{
"ideal":240,"min":180,"max":240
},
"height":{
"ideal":426,"min":320,"max":426
},
"minBitrate":512,
"frameRate":30,
"deviceId":"01b7fc4ca1db683de1b9cd516fba281f61797605809e734c2dde5db5aa564d44"
},
"audio":{
"autoGainControl":false,
"bitrate":64,
"deviceId":"01b7fc4ca1db683de1b9cd516fba281f61797605809e734c2dde5db5aa564d44"
}
}
But the Flashphoner WEBSDK is overwriting and publishing the video with these constraints:
{
video: {
width: 320,
height: 240,
minBitrate: 512,
frameRate: {
ideal: 30
},
deviceId: "01b7fc4ca1db683de1b9cd516fba281f61797605809e734c2dde5db5aa564d44"
}
audio: {
autoGainControl: false,
bitrate: 64,
deviceId: "01b7fc4ca1db683de1b9cd516fba281f61797605809e734c2dde5db5aa564d44"
}
customStream: undefined
}
In your documentation we have found the param disableConstraintsNormalization at the function getMediaAccess, but it seems this param is not working at getMediaAccess(). We are looking to override the constraints at session.createStream to force the portrait mode.
1 - How can we do that?
2 - How the Flashphoner constraint normalization works? Does it tests each resolution until it finds one that is compatible?
3 - What is the best approach to broadcast a video in portrait mode and force the front camera in mobile devices?
4 - Is there a way to know which camera is being broadcasted when requesting permission and broadcasting the first/default camera available?
5 - Is there a way to disable the console.log?
Thanks,