HI,
I want to show always one video orientation without device orientation using Gocoder SDK 1.9.0.1377 for IOS
for example,
in Gocoder.config
broadcastVideoOrientation = .alwaysPortrait
caputedVideoRotates = false
videoPreviewRotates = false
I did that. then I expected that video orientation never changed althrough device orientation changed, ( portrait -> landscapeLeft).
but as a result, when device orientation changed portrait to landscapeLefe, AVCaptureDataOutput.connections.videoOrientation is changed. so capture video frame was rotated. There is a blank space above and below. The image below shows the video when the device is rotated landscape in portrait broadcasting.
I don’t want to FillMode on this video. just regardless of device rotate, If I choose always portarit or always landscape mode, I want that the video capture orientation is fixed. I wonder caputedVideoRotates would do that the role. but it doesn’t work.
and I tried to rotate ImageBuffer data using WOWZVideoSink::videoFrameWasCaptured(_ imageBuffer: CVImageBuffer)
but It’s not good idea. how I can fix video capture orientation?