@livo-tv/blocks 1.33.0 → 1.34.0

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/dist/video.cjs CHANGED
@@ -4134,16 +4134,21 @@ function VideoPlayer({
4134
4134
  if (video.paused) void video.play();
4135
4135
  else video.pause();
4136
4136
  }
4137
- function toggleMute() {
4137
+ function applyMuted(next) {
4138
4138
  const video = videoRef.current;
4139
- if (!video) return;
4140
- video.muted = !video.muted;
4139
+ isMutedRef.current = next;
4140
+ setIsMuted(next);
4141
+ if (video) video.muted = next;
4142
+ }
4143
+ function toggleMute() {
4144
+ applyMuted(!isMutedRef.current);
4141
4145
  }
4142
4146
  function changeVolume(next) {
4143
4147
  const video = videoRef.current;
4144
4148
  if (!video) return;
4145
4149
  video.volume = next;
4146
- video.muted = next === 0;
4150
+ setVolume(next);
4151
+ applyMuted(next === 0);
4147
4152
  }
4148
4153
  function seekTo(next) {
4149
4154
  const video = videoRef.current;
@@ -4405,7 +4410,7 @@ function VideoPlayer({
4405
4410
  children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Play, { className: "size-8 translate-x-0.5", fill: "currentColor" })
4406
4411
  }
4407
4412
  ) }),
4408
- state === "ready" && autoplayState === "muted" && /* @__PURE__ */ jsxRuntime.jsxs(
4413
+ state === "ready" && autoplayState === "muted" && isMuted && /* @__PURE__ */ jsxRuntime.jsxs(
4409
4414
  "button",
4410
4415
  {
4411
4416
  type: "button",