Socket
Socket
Sign inDemoInstall

react-lazy-youtube

Package Overview
Dependencies
5
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-lazy-youtube

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


Version published
Maintainers
1
Weekly downloads
42
decreased by-52.27%

Weekly downloads

Readme

Source

react-lazy-youtube

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:

NameTypeDefaultDescription
idStringRequired
imageSizeenumdefaultSize of the thumbnail we get from youtube (default, hqdefault, mqdefault, sddefault, maxresdefault )
noCookiesboolfalseif set to true will change the host to "https://www.youtube-nocookie.com"
onEndfuncnoopFunctinn that runs on the end of the video
onErrorfuncnoopFunction that runs when the video encounters an error
onPausefuncnoopFunction that runs when the video is paused
onPlayfuncnoopfunction to run when the video starts Playing
onPlaybackQualityChangefuncnoopFunction that runs when the video changes quality
onPlaybackRateChangefuncnoopFunction that runs when the video encounters changes playback rate
onStateChangefuncnoopFunction that runs when the video changes state like from playing to paused
playerVarsobject{}https://developers.google.com/youtube/player_parameters
stylesobject{}Styles to apply over the wrapper

Contributing

Everyone is welcome to contribute.

Authors and license

Sara Vieira and contributors.

MIT License, see the included License.md file.

FAQs

Last updated on 06 Jun 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc