Code Monkey home page Code Monkey logo

Comments (5)

robnyman avatar robnyman commented on August 18, 2024 1

Hi,

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

from robnyman.github.com.

colax avatar colax commented on August 18, 2024

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?

from robnyman.github.com.

robnyman avatar robnyman commented on August 18, 2024

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.

from robnyman.github.com.

colax avatar colax commented on August 18, 2024

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 :)

from robnyman.github.com.

robnyman avatar robnyman commented on August 18, 2024

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.

from robnyman.github.com.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.