I am working on MPMoviePlayerViewController but struggling with playing video in full screen when changing orientation.
I have recorded video in landscape so it is possible to play that video in portrait in full screen.
Check this image for reference where video is in landscape and it should play red rectangle part when device is in portrait in full screen.
(the rectangle part contains the center of video and not the entire video).
so if anybody know's solution please help.
Thanks in advance.
Related
I have some videoplayer plugin thats play video on iOS IPhone.
I am in portrait mode and I run video
video goes into landscape mode
I rotate into landscape to watch the video
I press exit video - plugin is closed
Screen is in landscape but I get wrong document size and wrong window.innerHeight. Html tag has these wrong dimensions, so I am not able to do it in javascript/dom
Please can I solve this somehow? Am I able to refresh display? Because when I switch into portrait mode and back, then everything is ok.
window.screen.orientation is correct and window.screen.width/height are correct too.
edit:
I have tried to use this plugin https://github.com/apache/cordova-plugin-screen-orientation and when I lock portrait it is cropped also. There is some problem with viewport, width=device-width, but I do not know how to solve it
The Vimeo videos that we have embedded in a WP website video page display and play just fine in all browsers but on the iPad a blackbox appears when changing orientation. It partially overlaps the video frame that stays visible below. It appears to be a new instance of the embedded video with no enough bandwidth to display the image...Any ideas on how to prevent this from happening?
I don't have an iPhone 5, but my client has it, and he says that when tapping on a movie it goes to the Youtube movie (he can see thumbnail) but does not play the movie. It only displays a black screen. Here is the link(just click/tap on first image to play the video). I hope you can help, I can't see the bug because I don't have an iPhone5.
I'm trying to upload/save a taken video(if shot in portrait mode) in landscape mode. Using the UIImagePickerController, According to these questions:
video orientation UIImagePickerController
How can I set the UIImagePickerController orientation for video?
These questions(and many others) explain how to determine if the video is shot in portrait orientation but I cannot find a answer to how a video can actually be uploaded and saved(to a server) in an orientation that when played on a media device the video isn't horizontal and weird looking. Can we come to conclusion here for everyone who has looked into this and see if/how this can be done?
I'm going to use UIImagePickerController with source as a camera. by default when i'm capturing the image m able to take the picture in portrait mode. here the problem is that i'm not able to display the same view in landscape mode.
Is there any other way to open the camera in Landscape mode?
Thanks in advance.
First of all there is no way to open camera in Landscape mode So we have to customize views as per our need.
You have to add rotation transformation to picture which will match to landscape view. You can hard code it as ,
Blockquote
CGAffineTransformRotate(CGAffineTransformIdentity, 117.81)"
Blockquote