Log in or register to post comments

Videoplayback Landscape problem

June 29, 2015 - 4:52am #1

Hello,

I've been trying to make landscape orientation available in my app, in which I've implemented the Videoplayback sample, by using code from the Books sample.

I keep having the problem that when I turn my phone to landscape the camera view isn't the right size, as you can see in the attached image (1).
Another weird thing is that when I open the scanner while already holding my phone in landscape the camera view is the right size, but now the portrait view is wrong (see image 2).

Am I missing something? Do you have any idea what could be the problem or do you maybe need some more information?

AttachmentSize
Image icon IMG_1.PNG875.17 KB
Image icon IMG_2.PNG965.73 KB

Videoplayback Landscape problem

July 7, 2015 - 6:48am #5

I'm only building my app for iOS so no Android SDK is involved.

I also added UI elements and I want to rotate them when the device is rotated. That's why I tried adding code from the Books sample, where the rotation works as I want it.

Videoplayback Landscape problem

July 7, 2015 - 1:18am #4

What SDK are you using Android?

If my understanding is correct, videoplayback sample handles device rotation better than the image target sample. This is for ios sdk 4.2.3

In the videoplayback sample I noticed that the scanner is always in portrait mode because I was trying to add ui elements on the EAGLView. However when 

the device is rotated while it is scanning you will see that the display on the scanner is not affected as compared to the image target sample.

HTH

Videoplayback Landscape problem

July 7, 2015 - 1:03am #3

I'm already using the videoplayback sample as a template for my app. But it doesn't feature rotation of itself, does it (on iOS at least)?

I used some code snippets from the books sample, which does handle rotation as I want it when I try the sample on my device, but I can't get it to work with the videoplayback sample.

Videoplayback Landscape problem

July 7, 2015 - 12:10am #2

I suggest to use the videoplayback sample and use it as a template for my app. It has handled the rotation of the device pretty well.

HTH

Log in or register to post comments