orientation

How to remove or edit Exif from mp4 video?

孤街醉人 提交于 2019-12-20 08:37:03
问题 I recorded a Full HD video with Samsung Galaxy II, when I uploaded it to YouTube I found that it turned to 90 degrees like Portrait layout 1080x1920 NOT 1920x1080. I found the cause of the problem: YouTube is reading video metadata and rotate video acording Exif orientation before encoding This is ExifTool report (please see last tag "Rotation"): ExifTool Version Number : 8.61 File Name : video.mp4 Directory : . File Size : 217 MB File Modification Date/Time : 2011:08:11 00:47:23+04:00 File

Force portrait mode

怎甘沉沦 提交于 2019-12-20 07:35:39
问题 Alright, since no one answered my previous question, I have come to believe that there may be no easy way to do this. But I am optimistic. Here's my issue: In my app, I am switching from ViewControllerOne to ViewControllerTwo by using a regular UIButton. ViewControllerOne is always in landscape mode. ViewControllerTwo is supposed to be always in portrait mode. However, when I push the button in my landscape ViewControllerOne, ViewControllerTwo is also in landscape mode, although I want it to

Force portrait mode

ぃ、小莉子 提交于 2019-12-20 07:34:05
问题 Alright, since no one answered my previous question, I have come to believe that there may be no easy way to do this. But I am optimistic. Here's my issue: In my app, I am switching from ViewControllerOne to ViewControllerTwo by using a regular UIButton. ViewControllerOne is always in landscape mode. ViewControllerTwo is supposed to be always in portrait mode. However, when I push the button in my landscape ViewControllerOne, ViewControllerTwo is also in landscape mode, although I want it to

cocos2d v3 re-orient screen during App use

删除回忆录丶 提交于 2019-12-20 06:37:24
问题 So in cocos2d (I believe I was on v2.1) I did this to lock and set the orientations: AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; const UIInterfaceOrientation ORIENTATION = delegate.navController.interfaceOrientation; delegate.navController. delegate.navController.screenOrientation = ORIENTATION == UIInterfaceOrientationMaskPortrait; UIViewController *mVC = [[UIViewController alloc] init]; [delegate.navController presentModalViewController:mVC animated

Programmatically access orientation of an iPhone video

人盡茶涼 提交于 2019-12-20 05:26:10
问题 I need to access a video returned by the UIImagePickerController and know if it was recorded portrait or landscape. I've seen references to mov_read_tkhd but I'm not sure if that will do the job, or indeed how to include the necessary libraries. 回答1: On iOS 4 and above, with 3GS/3rd gen iTouch or better, you can use the new AVFoundation libraries. Something like: NSURL *url = // url to the video returned by the picker AVAssetTrack *videoTrack = [[url tracksWithMediaType:AVMediaTypeVideo]

Set the orientation to portrait from code

不想你离开。 提交于 2019-12-20 03:19:50
问题 I know I can limit the orientation from the manifest file. Like this android:screenOrientation="portrait" But is it possible to set the orientation from code ? for example setting the activity to full screen can be done both from manifest and from code this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 回答1: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); 回答2: Activity. setRequestedOrientation(..) 来源: https:/

Specify Popup location, throughout page navigation

痴心易碎 提交于 2019-12-20 02:32:58
问题 Hello I have an issue with positioning a popup, in a WP8 app. My code is that I have instantiated a popup, where the child is a usercontrol, like: Popup CenterPopup = new Popup(); LayoutRoot.Children.Add(CenterPopup); CenterPopup = new UsercontrolElement(); This code would make my UsercontrolElement appear precisely in the middle, as it looks in the design view for the xaml code. The problem is that my UsercontrolElement is a waiting screen that I want to be visible during a page navigation

Rotating image by 3*Double.pi/2 makes image not appear (swift3)

橙三吉。 提交于 2019-12-19 11:49:11
问题 Trying to rotate my image orientation by 270 degrees I can rotate by 90 degrees and the image appears however when rotating the image by 270 nothing happens. I have added 2 pictures of the 90 and 270 degrees commands to make things more clear. extension CIImage { var image: UIImage? { return UIImage(ciImage: self) } var rotatingLeft: CIImage? { let transform = CGAffineTransform(translationX: extent.midX, y: extent.midY) .rotated(by: CGFloat.pi.divided(by: 2)) .translatedBy(x: -extent.midX, y:

How to fix rotation on webview for Android phones?

蓝咒 提交于 2019-12-19 10:28:26
问题 I'm trying to figure out how to fix the orientation problem on webview. Basically every time the user changes the orientation on the device the program goes white and reloads the entire page. This just takes to long. I'd like it to work like every other program that simply adjusts the page size to fit the orientation.I've tried reading other articles on the subject, but when I implement their solution it doesn't seem to fix the problem. Here is my current code. package testdev.HelloWebApp;

android: why getrotationmatrix return false?

折月煮酒 提交于 2019-12-19 07:51:35
问题 I want to get the orientation of my phone and I have using this code that I find lot of people using it. this is the code public void onSensorChanged(SensorEvent event) { //if the data sensor is unreliabel if(event.accuracy == SensorManager.SENSOR_STATUS_UNRELIABLE) return; //gets the value switch (event.sensor.getType()) { case Sensor.TYPE_ACCELEROMETER: gravity = event.values.clone(); break; case Sensor.TYPE_MAGNETIC_FIELD: geomag = event.values.clone(); break; } getOrientation(); } private