@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20261016064336 → 0.8.1-dev.20261017071846

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/index.js CHANGED
@@ -7899,7 +7899,25 @@ var DeviceAssetSelector = ({
7899
7899
  ...nodeProps?.width && { width: nodeProps.width },
7900
7900
  ...nodeProps?.height && { height: nodeProps.height }
7901
7901
  };
7902
- const renderMedia = () => isHls ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
7902
+ const isVideoFile = selectedAsset.type === "video-file";
7903
+ const playOptions = nodeProps?.playOptions ?? "autoplay";
7904
+ const renderMedia = () => isVideoFile ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
7905
+ "video",
7906
+ {
7907
+ style: styles,
7908
+ className: "object-cover w-full",
7909
+ src: resolvedAssetUrl,
7910
+ poster: resolvedThumbnailUrl,
7911
+ width: selectedAsset.intrinsicWidth,
7912
+ height: selectedAsset.intrinsicHeight,
7913
+ controls: showControls,
7914
+ loop,
7915
+ autoPlay: playOptions === "autoplay",
7916
+ muted: playOptions === "autoplay",
7917
+ playsInline: true,
7918
+ preload: playOptions === "autoplay" ? "auto" : "metadata"
7919
+ }
7920
+ ) : isHls ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
7903
7921
  HlsPlayer2,
7904
7922
  {
7905
7923
  assetUrl: resolvedAssetUrl,
package/dist/index.mjs CHANGED
@@ -182,7 +182,25 @@ var DeviceAssetSelector = ({
182
182
  ...nodeProps?.width && { width: nodeProps.width },
183
183
  ...nodeProps?.height && { height: nodeProps.height }
184
184
  };
185
- const renderMedia = () => isHls ? /* @__PURE__ */ jsx3(
185
+ const isVideoFile = selectedAsset.type === "video-file";
186
+ const playOptions = nodeProps?.playOptions ?? "autoplay";
187
+ const renderMedia = () => isVideoFile ? /* @__PURE__ */ jsx3(
188
+ "video",
189
+ {
190
+ style: styles,
191
+ className: "object-cover w-full",
192
+ src: resolvedAssetUrl,
193
+ poster: resolvedThumbnailUrl,
194
+ width: selectedAsset.intrinsicWidth,
195
+ height: selectedAsset.intrinsicHeight,
196
+ controls: showControls,
197
+ loop,
198
+ autoPlay: playOptions === "autoplay",
199
+ muted: playOptions === "autoplay",
200
+ playsInline: true,
201
+ preload: playOptions === "autoplay" ? "auto" : "metadata"
202
+ }
203
+ ) : isHls ? /* @__PURE__ */ jsx3(
186
204
  HlsPlayer,
187
205
  {
188
206
  assetUrl: resolvedAssetUrl,
package/dist/server.js CHANGED
@@ -5504,7 +5504,25 @@ var DeviceAssetSelector = ({
5504
5504
  ...nodeProps?.width && { width: nodeProps.width },
5505
5505
  ...nodeProps?.height && { height: nodeProps.height }
5506
5506
  };
5507
- const renderMedia = () => isHls ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
5507
+ const isVideoFile = selectedAsset.type === "video-file";
5508
+ const playOptions = nodeProps?.playOptions ?? "autoplay";
5509
+ const renderMedia = () => isVideoFile ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
5510
+ "video",
5511
+ {
5512
+ style: styles,
5513
+ className: "object-cover w-full",
5514
+ src: resolvedAssetUrl,
5515
+ poster: resolvedThumbnailUrl,
5516
+ width: selectedAsset.intrinsicWidth,
5517
+ height: selectedAsset.intrinsicHeight,
5518
+ controls: showControls,
5519
+ loop,
5520
+ autoPlay: playOptions === "autoplay",
5521
+ muted: playOptions === "autoplay",
5522
+ playsInline: true,
5523
+ preload: playOptions === "autoplay" ? "auto" : "metadata"
5524
+ }
5525
+ ) : isHls ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
5508
5526
  HlsPlayer2,
5509
5527
  {
5510
5528
  assetUrl: resolvedAssetUrl,
package/dist/server.mjs CHANGED
@@ -147,7 +147,25 @@ var DeviceAssetSelector = ({
147
147
  ...nodeProps?.width && { width: nodeProps.width },
148
148
  ...nodeProps?.height && { height: nodeProps.height }
149
149
  };
150
- const renderMedia = () => isHls ? /* @__PURE__ */ jsx3(
150
+ const isVideoFile = selectedAsset.type === "video-file";
151
+ const playOptions = nodeProps?.playOptions ?? "autoplay";
152
+ const renderMedia = () => isVideoFile ? /* @__PURE__ */ jsx3(
153
+ "video",
154
+ {
155
+ style: styles,
156
+ className: "object-cover w-full",
157
+ src: resolvedAssetUrl,
158
+ poster: resolvedThumbnailUrl,
159
+ width: selectedAsset.intrinsicWidth,
160
+ height: selectedAsset.intrinsicHeight,
161
+ controls: showControls,
162
+ loop,
163
+ autoPlay: playOptions === "autoplay",
164
+ muted: playOptions === "autoplay",
165
+ playsInline: true,
166
+ preload: playOptions === "autoplay" ? "auto" : "metadata"
167
+ }
168
+ ) : isHls ? /* @__PURE__ */ jsx3(
151
169
  HlsPlayer,
152
170
  {
153
171
  assetUrl: resolvedAssetUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clyrex-digital/clyrex-controls-dev",
3
- "version": "0.8.1-dev.20261016064336",
3
+ "version": "0.8.1-dev.20261017071846",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",