@superinterface/react 2.24.1 → 2.24.3

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.cjs CHANGED
@@ -1629,7 +1629,10 @@ var Video = function(param) {
1629
1629
  var src = param.src;
1630
1630
  return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(MediaContainer, {
1631
1631
  children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react27.MediaPlayer, {
1632
- src: src,
1632
+ src: {
1633
+ src: src,
1634
+ type: "video/".concat(src.split(".").pop())
1635
+ },
1633
1636
  playsInline: true,
1634
1637
  hideControlsOnMouseLeave: true,
1635
1638
  crossOrigin: true,
@@ -1680,7 +1683,10 @@ var Audio = function(param) {
1680
1683
  var src = param.src;
1681
1684
  return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(MediaContainer, {
1682
1685
  children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_react28.MediaPlayer, {
1683
- src: src,
1686
+ src: {
1687
+ src: src,
1688
+ type: "audio/".concat(src.split(".").pop())
1689
+ },
1684
1690
  viewType: "audio",
1685
1691
  crossOrigin: true,
1686
1692
  playsInline: true,