Giter Club home page Giter Club logo

Comments (6)

moonstar-x avatar moonstar-x commented on July 23, 2024

Hey there, you're right, there is a way to hide the controls, however I did not implement it because this information was not available on the Documentation for the Player Embed API. I just tried adding a control prop and it does hide the controls for online live streams and videos being played from the TwitchPlayer component. However, if the live stream is not online, the offline player image will not show up and only a black screen will appear. Also, when videos are loading, the screen will go black too. The player will still capture keyboard events (i.e space will still pause the player).

In any case, I'm going to update TwitchPlayer component to accept a hideControls prop so this becomes possible.

from react-twitch-embed.

knawwxbackme avatar knawwxbackme commented on July 23, 2024

Thanks so much! When you do could you add little documentation for it and let me know whenever you update it?

from react-twitch-embed.

moonstar-x avatar moonstar-x commented on July 23, 2024

Sure, I should have it ready in just a minute :)

from react-twitch-embed.

moonstar-x avatar moonstar-x commented on July 23, 2024

I just updated it in #14, try to update your package on your project. The README has also been updated, just add the hideControls prop to your TwitchPlayer component and it should hide the controls. Let me know if it works so I can close this issue!

from react-twitch-embed.

knawwxbackme avatar knawwxbackme commented on July 23, 2024

I've never had someone respond so quickly to an issue. Thanks so much!

from react-twitch-embed.

moonstar-x avatar moonstar-x commented on July 23, 2024

Alright then! Thanks for posting this issue, I didn't know this was possible until now.

I'm closing the issue then, if you need something else don't hesitate to create another issue.

from react-twitch-embed.

Related Issues (13)

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.