Enable landscape view only for videos #291

Closed
morands opened this Issue Jan 29, 2012 · 12 comments

Comments

Projects
None yet
4 participants

morands commented Jan 29, 2012

Hi guys,
in my publications there are some YouTube videos that I'd like to enable for landscape mode, but videos are the only part of the app that I want in landscape: I tried to modify the orientation options on both the Xcode project and on the book.json file but I can't reach my goal. Anyone has an idea?

Thanks in advance,
Ed

zenz commented Jan 30, 2012

Then make your books in landscape mode? it's really not a good idea to ask the user rotate the iPad just for watching the video.

morands commented Jan 30, 2012

@zenz I'm considering to leave only portrait also for videos, 'cause I'm working on a magazine and I can't make both versions every month.

Owner

Simbul commented Feb 6, 2012

I'd have to test this, but I'm pretty sure the video can be viewed in portrait mode even though the Baker app is only landscape, when the user selects fullscreen.

Collaborator

folletto commented Feb 14, 2012

@morands so, you mean that by building the book as portrait only, then playing a video and then turning the iPad, the video doesn't turn?

Owner

Simbul commented Feb 20, 2012

Hi @morands any news on this issue?

morands commented Feb 20, 2012

Hey @Simbul! I have been pretty busy with school and another project recently... I should take a look to Baker for the end of this week (at least I hope). I'll keep you updated :)

Owner

Simbul commented Feb 20, 2012

Cool, we'll be waiting :)

morands commented Feb 25, 2012

Hi @Simbul and @folletto sorry for the wait but I finally made some tests with the "initial" Baker (without my changes). I tried many configurations and basically we can reassume as:

  1. Info.plist: all orientations enabled + book.json: only portrait = videos always in portrait
  2. Info.plist: all orientations enabled + book.json: both = videos in landscape and also contents

So I can see fullscreen videos in portrait only if I enable also the "normal content" to portrait.
Any idea about how could I solve it?

Collaborator

folletto commented Feb 27, 2012

It seems that the code we use to handle the screen rotation influences the video as well.

It seems there's something to detect the video entering and exiting full screen, but it's on javascript side. I should try to see if there's an equivalent on Objective-C side. It might be possible, but unfortunately it requires some research and rework.

Collaborator

folletto commented Feb 27, 2012

Collaborator

folletto commented Mar 5, 2012

I'm afraid that question didn't have any answer and as such is probably either impossible today or too complex to achieve. Sorry. :(

@folletto folletto closed this Mar 5, 2012

morands commented Mar 5, 2012

Don't worry ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment