@trafilea/afrodita-components 6.34.6 → 6.34.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.esm.js +5 -0
- package/build/index.esm.js.map +1 -1
- package/build/index.js +5 -0
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -12208,6 +12208,11 @@ var Video$1 = function (_a) {
|
|
|
12208
12208
|
var isStarted = videoProgress > 0;
|
|
12209
12209
|
var progress = videoProgress / ((_c = (_b = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _b === void 0 ? void 0 : _b.duration) !== null && _c !== void 0 ? _c : 0);
|
|
12210
12210
|
var hideProgressBar = videoProgress === ((_e = (_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.duration) !== null && _e !== void 0 ? _e : 0) || videoProgress === 0;
|
|
12211
|
+
React$2.useEffect(function () {
|
|
12212
|
+
if (videoRef.current) {
|
|
12213
|
+
videoRef.current.muted = Boolean(muted);
|
|
12214
|
+
}
|
|
12215
|
+
}, [muted]);
|
|
12211
12216
|
var handlePlayClick = function () {
|
|
12212
12217
|
if (videoRef.current && !debouncePlay) {
|
|
12213
12218
|
setDebouncePlay(true);
|