Comments (6)
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.
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.
Sure, I should have it ready in just a minute :)
from react-twitch-embed.
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.
I've never had someone respond so quickly to an issue. Thanks so much!
from react-twitch-embed.
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)
- Getting a ReferenceError: document is not defined error in a Next.js project. HOT 4
- Getting Error: Cannot read property 'Embed' of undefined HOT 18
- TypeError: Cannot read property 'setChannel' of undefined HOT 7
- Next.js\TypeError: Cannot read property 'Embed' of undefined HOT 4
- [SSR] TwitchChat and TwitchClip no window reference when components are rendered in the first page of app HOT 5
- Add new picture-in-picture attribute HOT 6
- Responsive resizing HOT 2
- className HOT 2
- Add typings. HOT 3
- Component overwrites this.props HOT 2
- Twitch Purple Screen Of Death HOT 3
- Way to control video with custom controls HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-twitch-embed.