Skip to content

Commit 74999de

Browse files
committed
Updates
1 parent 6d4735e commit 74999de

File tree

266 files changed

+3107
-88
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+3107
-88
lines changed

1bfc9850-609ded0e9698d6852236.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1bfc9850-609ded0e9698d6852236.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

2634385a501d7a57b08b538472696de6433f11dd-34045ab738a49e61c850.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/**
2+
* @component HoverVideoPlayer
3+
*
4+
* @param {(string|string[]|VideoSource|VideoSource[])} videoSrc - Source(s) to use for the video player. Accepts 3 different formats:
5+
* - **String**: the URL string to use as the video player's src
6+
* - **Object**: an object with attributes:
7+
* - src: The src URL string to use for a video player source
8+
* - type: The media type of the video source, ie 'video/mp4'
9+
* - **Array**: if you would like to provide multiple sources, you can provide an array of URL strings and/or objects with the shape described above
10+
* @param {(VideoCaptionsTrack|VideoCaptionsTrack[])} [videoCaptions] - Captions track(s) to use for the video player for accessibility. Accepts 2 formats:
11+
* - **Object**: an object with attributes:
12+
* - src: The src URL string for the captions track file
13+
* - srcLang: The language code for the language that these captions are in (ie, 'en', 'es', 'fr')
14+
* - label: The title of the captions track
15+
* - default: Whether this track should be used by default if the user's preferences don't match an available srcLang
16+
* - **Array**: if you would like to provide multiple caption tracks, you can provide an array of objects with the shape described above
17+
* @param {boolean} [focused=false] - Offers a prop interface for forcing the video to start/stop without DOM events
18+
* When set to true, the video will begin playing and any events that would normally stop it will be ignored
19+
* @param {boolean} [disableDefaultEventHandling] - Whether the video player's default mouse and touch event handling should be disabled in favor of a fully custom solution using the `focused` prop
20+
* @param {node} [hoverTargetRef] - Ref to a custom element that should be used as the target for hover events to start/stop the video
21+
* By default will just use the container div wrapping the player
22+
* @param {node} [pausedOverlay] - Contents to render over the video while it's not playing
23+
* @param {node} [loadingOverlay] - Contents to render over the video while it's loading
24+
* @param {number} [loadingStateTimeout=200] - Duration in ms to wait after attempting to start the video before showing the loading overlay
25+
* @param {number} [overlayTransitionDuration=400] - The transition duration in ms for how long it should take for the overlay to fade in/out
26+
* @param {boolean} [restartOnPaused=false] - Whether the video should reset to the beginning every time it stops playing after the user mouses out of the player
27+
* @param {boolean} [unloadVideoOnPaused=false] - Whether we should unload the video's sources when it is not playing in order to free up memory and bandwidth
28+
* This can be useful in scenarios where you may have a large number of relatively large video files on a single page;
29+
* particularly due to a known bug in Google Chrome, if too many videos are loading in the background at the same time,
30+
* it starts to gum up the works so that nothing loads properly and performance can degrade significantly.
31+
* @param {boolean} [muted=true] - Whether the video player should be muted
32+
* @param {boolean} [loop=true] - Whether the video player should loop when it reaches the end
33+
* @param {string} [preload] - Sets how much information the video element should preload before being played. Accepts one of the following values:
34+
* - **"none"**: Nothing should be preloaded before the video is played
35+
* - **"metadata"**: Only the video's metadata (ie length, dimensions) should be preloaded
36+
* - **"auto"**: The whole video file should be preloaded even if it won't be played
37+
* @param {string} [crossOrigin='anonymous'] - Sets how the video element should handle CORS requests. Accepts one of the following values:
38+
* - **"anonymous"**: CORS requests will have the credentials flag set to 'same-origin'
39+
* - **"use-credentials"**: CORS requests for this element will have the credentials flag set to 'include'
40+
* @param {string} [className] - Optional className to apply custom styling to the container element
41+
* @param {object} [style] - Style object to apply custom inlined styles to the hover player container
42+
* @param {string} [pausedOverlayWrapperClassName] - Optional className to apply custom styling to the overlay contents' wrapper
43+
* @param {object} [pausedOverlayWrapperStyle] - Style object to apply custom inlined styles to the paused overlay wrapper
44+
* @param {string} [loadingOverlayWrapperClassName] - Optional className to apply custom styling to the loading state overlay contents' wrapper
45+
* @param {object} [loadingOverlayWrapperStyle] - Style object to apply custom inlined styles to the loading overlay wrapper
46+
* @param {string} [videoClassName] - Optional className to apply custom styling to the video element
47+
* @param {object} [videoStyle] - Style object to apply custom inlined styles to the video element
48+
* @param {string} [sizingMode='video'] - Describes sizing mode to use to determine how the player's contents should be styled. Accepts 4 possible values:
49+
* - **"video"**: Everything should be sized based on the video element's dimensions - the overlays will expand to cover the video
50+
* - **"overlay"**: Everything should be sized based on the paused overlay's dimensions - the video element will expand to fit inside those dimensions
51+
* - **"container"**: Everything should be sized based on the player's outer container div - the overlays and video will all expand to cover the container
52+
* - **"manual"**: Manual mode does not apply any special styling and allows the developer to exercise full control over how everything should be sized - this means you will likely need to provide your own custom styling for both the paused overlay and the video element
53+
*
54+
* @license MIT
55+
*/

2634385a501d7a57b08b538472696de6433f11dd-34045ab738a49e61c850.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

404.html

Lines changed: 3 additions & 5 deletions
Large diffs are not rendered by default.

404/index.html

Lines changed: 3 additions & 5 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)