Giter VIP home page Giter VIP logo

Comments (6)

stanislaw avatar stanislaw commented on August 23, 2024

+1

Any answers?

from youtube-ios-player-helper.

Kowaio avatar Kowaio commented on August 23, 2024

Hello,

Same question here. Is there a way to call the fullscreen feature in or out with code? I'd like to close the fullscreen mode when receiving a kYTPlayerStateEnded, as well as triggering it when the user rotates its device. I don't want to manually resize my YTPlayerView that displays the inline video.

Thanks a lot guys.

Best regards,

from youtube-ios-player-helper.

Kowaio avatar Kowaio commented on August 23, 2024

I found a little trick to close the fullscreen video when receiving a "kYTPlayerStateEnded".

Just reload the UIWebView in that case and it will close the fullscreen mode.

Best,

from youtube-ios-player-helper.

osgafarov avatar osgafarov commented on August 23, 2024

Any news on this? (except little trick)

from youtube-ios-player-helper.

Kowaio avatar Kowaio commented on August 23, 2024

Didn't find anything better I'm afraid.

from youtube-ios-player-helper.

darkandchoco avatar darkandchoco commented on August 23, 2024

I did it by loading an empty html string onto the webview of the YTPlayerView: ytPlayerView.webView?.loadHTMLString("", baseURL: nil)

from youtube-ios-player-helper.

Related Issues (20)

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.