# Fixing Rotate Video Orientation On IOS

**URL:** https://community.wowza.com/t/fixing-rotate-video-orientation-on-ios/54345
**Category:** Wowza GoCoder SDK
**Created:** [December 16, 2019, 6:58am UTC](https://community.wowza.com/t/fixing-rotate-video-orientation-on-ios/54345 "2019-12-16T06:58:16Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Eugene\_Jeong1](https://avatars.discourse-cdn.com/v4/letter/e/a88e4f/32.png) [@Eugene\_Jeong1](https://community.wowza.com/u/Eugene_Jeong1)
#### Post date: [December 16, 2019, 6:58am UTC](https://community.wowza.com/t/fixing-rotate-video-orientation-on-ios/54345/1 "2019-12-16T06:58:16Z")

</div>

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?

---

_[View the full topic](https://community.wowza.com/t/fixing-rotate-video-orientation-on-ios/54345)._
