![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@u-wave/react-youtube
Advanced tools
Changelog
0.7.4 - 2022-04-23
Readme
YouTube player component for React.
Install - Usage - Demo - Props
npm install --save @u-wave/react-youtube
import YouTube from '@u-wave/react-youtube';
<YouTube
video="x2to0hs"
autoplay
/>
Name | Type | Default | Description |
---|---|---|---|
video | string | An 11-character string representing a YouTube video ID.. | |
id | string | DOM ID for the player element. | |
className | string | CSS className for the player element. | |
style | object | Inline style for container element. | |
width | number, string | Width of the player element. | |
height | number, string | Height of the player element. | |
paused | bool | Pause the video. | |
autoplay | bool | false | Whether the video should start playing automatically. https://developers.google.com/youtube/player_parameters#autoplay |
showCaptions | bool | false | Whether to show captions below the video. https://developers.google.com/youtube/player_parameters#cc_load_policy |
controls | bool | true | Whether to show video controls. https://developers.google.com/youtube/player_parameters#controls |
disableKeyboard | bool | false | Ignore keyboard controls. https://developers.google.com/youtube/player_parameters#disablekb |
allowFullscreen | bool | true | Whether to display the fullscreen button. https://developers.google.com/youtube/player_parameters#fs |
lang | string | The player's interface language. The parameter value is an ISO 639-1 two-letter language code or a fully specified locale. https://developers.google.com/youtube/player_parameters#hl | |
annotations | bool | true | Whether to show annotations on top of the video. https://developers.google.com/youtube/player_parameters#iv_load_policy |
startSeconds | number | Time in seconds at which to start playing the video. https://developers.google.com/youtube/player_parameters#start | |
endSeconds | number | Time in seconds at which to stop playing the video. https://developers.google.com/youtube/player_parameters#end | |
modestBranding | bool | false | Remove most YouTube logos from the player. https://developers.google.com/youtube/player_parameters#modestbranding |
playsInline | bool | false | Whether to play the video inline on iOS, instead of fullscreen. https://developers.google.com/youtube/player_parameters#playsinline |
showRelatedVideos | bool | true | Whether to show related videos after the video is over. https://developers.google.com/youtube/player_parameters#rel |
volume | number | The playback volume, as a number between 0 and 1. | |
muted | bool | Whether the video's sound should be muted. | |
suggestedQuality | string | The suggested playback quality. https://developers.google.com/youtube/iframe_api_reference#Playback_quality | |
playbackRate | number | Playback speed. https://developers.google.com/youtube/iframe_api_reference#setPlaybackRate | |
onReady | function | Sent when the YouTube player API has loaded. | |
onError | function | Sent when the player triggers an error. | |
onCued | function | () => {} | Sent when the video is cued and ready to play. |
onBuffering | function | () => {} | Sent when the video is buffering. |
onPlaying | function | () => {} | Sent when playback has been started or resumed. |
onPause | function | () => {} | Sent when playback has been paused. |
onEnd | function | () => {} | Sent when playback has stopped. |
onStateChange | function | ||
onPlaybackRateChange | function | ||
onPlaybackQualityChange | function |
FAQs
YouTube player component for React.
The npm package @u-wave/react-youtube receives a total of 3,375 weekly downloads. As such, @u-wave/react-youtube popularity was classified as popular.
We found that @u-wave/react-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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.