Unfortunately the preview size will be chosen by the iOS device and can’t be changed on our side. You can change it on the app side @Kumar Ramar.
If you select 480x720 as an example, iOS will choose the next available supported frame size for your video preview, then we’ll scale the video to the set broadcast size.
e.g. for my iPhone device it selects 1280x720 for my preview size then we will scale down to the broadcast size of 480x720.
019-01-29 16:48:00.327011-0800 iOSSDKBroadcast[16652:9702825] WowzaGoCoderSDK: correctBufferOrientation: transforming frames:
x-scale = 0.56
y-scale = 0.56
x-translate = 437.50
y-translate = 0.00
outWidth = 1280
outHeight = 720
angle = 0
broadcast orientation = 0
2019-01-29 16:48:00.327265-0800 iOSSDKBroadcast[16652:9702825] WowzaGoCoderSDK: correctBufferOrientation: scaling frame for non-canonical config:
frameScale = 0.56
outWidth = 480
outHeight = 720
x-translate = 0.00
y-translate = 0.00
You’ll need to set your frame size like this if you want to broadcast 480x720: (Again only as an example).
goCoderBroadcastConfig.videoWidth = 480;
goCoderBroadcastConfig.videoHeight = 720;