@faintlines/video-player
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -244,5 +244,3 @@ import { isEmpty, values, isEqual } from 'lodash'; | ||
var loopRangeRef = useRef(loopRange); | ||
var urlObj = typeof url === "string" ? { | ||
file: url | ||
} : url; | ||
var urlObj = ensureUrlObject(url); | ||
useEffect(function () { | ||
@@ -411,2 +409,7 @@ if (ref) { | ||
}); | ||
function ensureUrlObject(url) { | ||
return typeof url === "string" ? { | ||
file: url | ||
} : url; | ||
} | ||
@@ -462,3 +465,3 @@ function selectVideoUrl(_ref3) { | ||
return /*#__PURE__*/React.createElement(VideoPlayer, { | ||
key: url, | ||
key: urlToKey(url), | ||
url: url, | ||
@@ -473,3 +476,8 @@ preload: "auto", | ||
function urlToKey(url) { | ||
var urlObj = ensureUrlObject(url); | ||
return urlObj.file || urlObj.hls || urlObj.dash; | ||
} | ||
export { VideoPreloader, VideoPlayer as default, filterVideoUrls, isVideoUrl }; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@faintlines/video-player", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "", | ||
@@ -43,3 +43,3 @@ "license": "UNLICENSED", | ||
}, | ||
"gitHead": "d563aca53d838b63bf7782d2109db646b9b6bf1a" | ||
"gitHead": "ed8551a156172518730062da0be6b9e2cd4de91d" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37777
401