Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-lazy-youtube
Advanced tools
React Component to lazy load t+youtube videos by showing only the thumbnail of the video untill the person clicks on it as seen on https://awesometalks.party
Readme
React Component to lazy load t+youtube videos by showing only the thumbnail of the video untill the person clicks on it as seen on https://awesometalks.party
Demo: https://react-lazy-youtube.now.sh/
Props:
Name | Type | Default | Description |
---|---|---|---|
id | String | Required | |
imageSize | enum | default | Size of the thumbnail we get from youtube (default, hqdefault, mqdefault, sddefault, maxresdefault ) |
noCookies | bool | false | if set to true will change the host to "https://www.youtube-nocookie.com" |
onEnd | func | noop | Functinn that runs on the end of the video |
onError | func | noop | Function that runs when the video encounters an error |
onPause | func | noop | Function that runs when the video is paused |
onPlay | func | noop | function to run when the video starts Playing |
onPlaybackQualityChange | func | noop | Function that runs when the video changes quality |
onPlaybackRateChange | func | noop | Function that runs when the video encounters changes playback rate |
onStateChange | func | noop | Function that runs when the video changes state like from playing to paused |
playerVars | object | {} | https://developers.google.com/youtube/player_parameters |
styles | object | {} | Styles to apply over the wrapper |
Everyone is welcome to contribute.
Sara Vieira and contributors.
MIT License, see the included License.md file.
FAQs
React Component to lazy load t+youtube videos by showing only the thumbnail of the video untill the person clicks on it as seen on https://awesometalks.party
The npm package react-lazy-youtube receives a total of 34 weekly downloads. As such, react-lazy-youtube popularity was classified as not popular.
We found that react-lazy-youtube demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.