@mottosports/motto-video-player 1.0.1-rc.8 → 1.0.1-rc.9
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 +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ __export(index_exports, {
|
|
|
39
39
|
queryClient: () => queryClient
|
|
40
40
|
});
|
|
41
41
|
module.exports = __toCommonJS(index_exports);
|
|
42
|
+
var import_controls = require("shaka-player/dist/controls.css");
|
|
42
43
|
|
|
43
44
|
// #style-inject:#style-inject
|
|
44
45
|
function styleInject(css, { insertAt } = {}) {
|
|
@@ -102,6 +103,9 @@ var useShakePlayer = ({
|
|
|
102
103
|
}
|
|
103
104
|
player.addEventListener("error", (event) => {
|
|
104
105
|
const error = event.detail;
|
|
106
|
+
if (error?.code === 7e3) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
105
109
|
console.error("Shaka Player Error:", error);
|
|
106
110
|
onError?.(new Error(`Shaka Player Error: ${error.message || "Unknown error"}`));
|
|
107
111
|
});
|
|
@@ -109,6 +113,9 @@ var useShakePlayer = ({
|
|
|
109
113
|
onPlayerReady?.(player);
|
|
110
114
|
return player;
|
|
111
115
|
} catch (error) {
|
|
116
|
+
if (error?.code === 7e3) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
112
119
|
console.error("Error initializing Shaka Player:", error);
|
|
113
120
|
onError?.(error);
|
|
114
121
|
throw error;
|