iOS Video Always in Portrait - ios

I'm developing an App that uses AVFoundation for recording video.
Currently I've my video orientation set, when the Device Rotate it changes de video rotation
[videoLayer.connection setVideoOrientation:currentOrientation];
But, when I play the video on Native Video Player it's shown on portrait, despite of being recorded on a landscape orientation.
Why this happens?
How I can fix this?
Thank you!

Related

Force WKWebview always playing video url in landscape mode and full screen?

I want to force the WKWebview playing video in landscape mode and full screen, even the device is locked rotation. It is similar to the full screen mode of youtube app.
How can I archieve that ?
Thanks.

iOS 8 landscape app playing embedded youtube video from a uiwebview an only portrait ios app

In my Landscape app you tube open a video from web view . I want handle of you tube player . after playing video app in portrait mode. Thanks in advance..

status bar issue while orientation changes in ios while playing video

I have an issue when play youtube video on iOS That is, after play vieo at full screen mode at landscape (my app just supports portrait mode), or if user press Done during playing video, the status bar will not rotate.
Approx same link is : iOS status bar orientation after play video fullscreen

how video recording only landscape in default camera in titanium in iPhone?

I am developing an iOS application in Titanium Appcelerator and using inbuilt camera to video recording for 1-2 minutes but video recording only in landscape not in portrait mode.How its possible,i have open the camera its always open in portrait mode.
How is possible video recording only in landscape mode and camera open only landscape mode.
So your suggestions are valuable , so kindly let me know what is the best way forward.
Thank you for your time

UIWebView transitioning to Youtube video not staying in landscape orientation

I have an app I'm working on and I have a web view of the youtube channel in landscape but when a video comes up it plays in portrait. How can I force the video to play fullscreen in landscape?

Resources