react-social-embeds 1.0.9 → 1.0.11

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
@@ -169,7 +169,8 @@ function MediaPlayer(props) {
169
169
  }
170
170
  video._savedState = null;
171
171
  if (streamingType === "dash") {
172
- import("dashjs").then(({ default: dashjs }) => {
172
+ import("dashjs").then((dashjsModule) => {
173
+ const dashjs = dashjsModule.default || dashjsModule;
173
174
  const player = dashjs.MediaPlayer().create();
174
175
  player.on("error", (e) => {
175
176
  console.error("[MediaPlayer] DASH player error:", e);
@@ -192,7 +193,8 @@ function MediaPlayer(props) {
192
193
  video.src = src;
193
194
  });
194
195
  } else if (streamingType === "hls") {
195
- import("hls.js").then(({ default: Hls }) => {
196
+ import("hls.js").then((hlsModule) => {
197
+ const Hls = hlsModule.default || hlsModule;
196
198
  if (Hls.isSupported()) {
197
199
  const hls = new Hls();
198
200
  hls.loadSource(src);
package/dist/index.mjs CHANGED
@@ -103,7 +103,8 @@ function MediaPlayer(props) {
103
103
  }
104
104
  video._savedState = null;
105
105
  if (streamingType === "dash") {
106
- import("dashjs").then(({ default: dashjs }) => {
106
+ import("dashjs").then((dashjsModule) => {
107
+ const dashjs = dashjsModule.default || dashjsModule;
107
108
  const player = dashjs.MediaPlayer().create();
108
109
  player.on("error", (e) => {
109
110
  console.error("[MediaPlayer] DASH player error:", e);
@@ -126,7 +127,8 @@ function MediaPlayer(props) {
126
127
  video.src = src;
127
128
  });
128
129
  } else if (streamingType === "hls") {
129
- import("hls.js").then(({ default: Hls }) => {
130
+ import("hls.js").then((hlsModule) => {
131
+ const Hls = hlsModule.default || hlsModule;
130
132
  if (Hls.isSupported()) {
131
133
  const hls = new Hls();
132
134
  hls.loadSource(src);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-social-embeds",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Unified React embeds for social media content",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",