{"action":"closed","issue":{"url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/262","repository_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk","labels_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/262/labels{/name}","comments_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/262/comments","events_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/262/events","html_url":"https://github.com/QuickBlox/quickblox-ios-sdk/issues/262","id":127695642,"number":262,"title":"Self video orientation","user":{"login":"ruipfcosta","id":1910006,"avatar_url":"https://avatars.githubusercontent.com/u/1910006?v=3","gravatar_id":"","url":"https://api.github.com/users/ruipfcosta","html_url":"https://github.com/ruipfcosta","followers_url":"https://api.github.com/users/ruipfcosta/followers","following_url":"https://api.github.com/users/ruipfcosta/following{/other_user}","gists_url":"https://api.github.com/users/ruipfcosta/gists{/gist_id}","starred_url":"https://api.github.com/users/ruipfcosta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruipfcosta/subscriptions","organizations_url":"https://api.github.com/users/ruipfcosta/orgs","repos_url":"https://api.github.com/users/ruipfcosta/repos","events_url":"https://api.github.com/users/ruipfcosta/events{/privacy}","received_events_url":"https://api.github.com/users/ruipfcosta/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-20T14:36:05Z","updated_at":"2016-02-03T15:04:24Z","closed_at":"2016-02-03T15:04:24Z","body":"There's this behaviour (also present on the WebRTC sample) which is not ideal for me: when the device is flat on a surface, the device is assumed to be in portrait orientation, showing the self video preview layer vertically and streaming the video vertically to the other party.\r\nI would like to be able to control the orientation of the stream but there doesn't seem to be a way to do it. I found that if I do this:\r\n\r\n```swift\r\nselfVideoLayer.connection.videoOrientation = AVCaptureVideoOrientation.LandscapeLeft\r\n```\r\n\r\nI can set the layer's orientation to what I want, but the video is still streamed in portrait. Is there a way to control the orientation of the stream too?\r\nThis is only happening when the device is flat on a surface, in other positions everything seems to be ok.\r\n\r\nThanks in advance!"}}