stormcloud-video-player 0.2.7 → 0.2.8
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/stormcloud-vp.min.js +1 -1
- package/lib/index.cjs +2 -2
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +2 -2
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.cjs +2 -2
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +2 -2
- package/lib/players/index.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +2 -2
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/utils/tracking.cjs +2 -2
- package/lib/utils/tracking.cjs.map +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -641,6 +641,7 @@ async function getBrowserID(clientInfo) {
|
|
|
641
641
|
const fingerprintString = JSON.stringify(clientInfo);
|
|
642
642
|
if (typeof crypto !== "undefined" && crypto.subtle && crypto.subtle.digest) {
|
|
643
643
|
try {
|
|
644
|
+
await crypto.subtle.digest("SHA-256", new Uint8Array([1, 2, 3]));
|
|
644
645
|
const hashBuffer = await crypto.subtle.digest(
|
|
645
646
|
"SHA-256",
|
|
646
647
|
new TextEncoder().encode(fingerprintString)
|
|
@@ -650,8 +651,7 @@ async function getBrowserID(clientInfo) {
|
|
|
650
651
|
return hashHex;
|
|
651
652
|
} catch (error) {
|
|
652
653
|
console.warn(
|
|
653
|
-
"[StormcloudVideoPlayer] crypto.subtle.digest
|
|
654
|
-
error
|
|
654
|
+
"[StormcloudVideoPlayer] crypto.subtle.digest not supported, using fallback hash"
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
657
|
}
|