l-min-components 1.7.1477 → 1.7.1478
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/package.json
CHANGED
|
@@ -222,6 +222,7 @@ const VideoPlayer2 = ({
|
|
|
222
222
|
!error
|
|
223
223
|
) {
|
|
224
224
|
hlsRef.current?.destroy();
|
|
225
|
+
hlsRef.current = null;
|
|
225
226
|
}
|
|
226
227
|
}
|
|
227
228
|
}
|
|
@@ -242,10 +243,11 @@ const VideoPlayer2 = ({
|
|
|
242
243
|
return () => {
|
|
243
244
|
if (
|
|
244
245
|
hlsRef.current &&
|
|
245
|
-
typeof hlsRef.current
|
|
246
|
+
typeof hlsRef.current?.destroy === "function" &&
|
|
246
247
|
!error
|
|
247
248
|
) {
|
|
248
|
-
hlsRef.current
|
|
249
|
+
hlsRef.current?.destroy();
|
|
250
|
+
hlsRef.current = null;
|
|
249
251
|
}
|
|
250
252
|
|
|
251
253
|
detachEvents();
|