Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

full screen auto landscape mode #24

Open
colax opened this issue Feb 1, 2018 · 5 comments
Open

full screen auto landscape mode #24

colax opened this issue Feb 1, 2018 · 5 comments

Comments

@colax
Copy link

colax commented Feb 1, 2018

Hi,

first thanks for the code.

How did you make video Full Screen automatically on landscape mode? It seems isnt allowed by the browser unless you trigger a click/keydown events.

@robnyman
Copy link
Owner

robnyman commented Feb 1, 2018

Hi,

You can't. For security reasons, it has to be triggered by a user action.

@colax
Copy link
Author

colax commented Feb 2, 2018

So how does it work in your project? Because it is full screen on landscape with no button triggered.

And how are they doing for example in Youtube website?

@robnyman
Copy link
Owner

robnyman commented Feb 2, 2018

Depending on mobile OS, videos in landscape - once they have started playing - will be in fullscreen mode. But that still takes the user trigger of starting the video/pressing fullscreen or similar.

@colax
Copy link
Author

colax commented Feb 2, 2018

Yes, first the video needs to be played.

But anyway, I'm using android 7 in my site and yours, and yours when I switch to landscape, it starts full screen. That's why I don't get it.

Could it be the player? I'm using a custom HTML5 player from Unreal Media Server developers. In the end, it is HTML5.
i thought about simulate a click or keydown but it doesnt work neither.

That's why I'm quite interested in your solution :)

@robnyman
Copy link
Owner

robnyman commented Feb 5, 2018

I think it's rather the default operating system, and since my code just use the basic APIs to do it. It could rather be that, as a side effect, some of the more complex players' implementation then block that native behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants