@faintlines/video-player
Advanced tools
Comparing version 1.3.5 to 1.3.6
@@ -194,3 +194,3 @@ import React, { forwardRef, useState, useRef, useEffect, useCallback, useContext } from 'react'; | ||
var _excluded = ["url", "hlsUrl", "dashUrl", "fileUrl", "className", "progressInterval", "playsInline", "autoPlay", "preload", "onPlay", "onPause", "onProgress", "onLoadedMetadata"], | ||
var _excluded = ["url", "hlsUrl", "dashUrl", "fileUrl", "className", "progressInterval", "playsInline", "autoPlay", "preload", "poster", "onPlay", "onPause", "onProgress", "onLoadedMetadata"], | ||
_excluded2 = ["children"]; | ||
@@ -211,2 +211,3 @@ | ||
preload = _ref.preload, | ||
poster = _ref.poster, | ||
onPlay = _ref.onPlay, | ||
@@ -268,3 +269,4 @@ onPause = _ref.onPause, | ||
} | ||
}, [onProgress]); | ||
}, // eslint-disable-next-line react-hooks/exhaustive-deps | ||
[onProgress]); | ||
var metadataLoadedHandler = useCallback(function (evt) { | ||
@@ -280,3 +282,4 @@ if (ref && ref.current) { | ||
} | ||
}, [onLoadedMetadata]); | ||
}, // eslint-disable-next-line react-hooks/exhaustive-deps | ||
[onLoadedMetadata]); | ||
var playHandler = useCallback(function (evt) { | ||
@@ -290,3 +293,4 @@ if (ref && ref.current) { | ||
} | ||
}, [onPlay]); | ||
}, // eslint-disable-next-line react-hooks/exhaustive-deps | ||
[onPlay]); | ||
var pauseHandler = useCallback(function (evt) { | ||
@@ -300,3 +304,4 @@ if (ref && ref.current) { | ||
} | ||
}, [onPause]); | ||
}, // eslint-disable-next-line react-hooks/exhaustive-deps | ||
[onPause]); | ||
return /*#__PURE__*/React.createElement(WrapperPropsContext.Provider, { | ||
@@ -322,2 +327,3 @@ value: { | ||
preload: preload, | ||
poster: poster, | ||
disablePictureInPicture: true | ||
@@ -324,0 +330,0 @@ }, getRemotePlaybackAttribute()) |
{ | ||
"name": "@faintlines/video-player", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "", | ||
"license": "UNLICENSED", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"test": "jest" | ||
}, | ||
"files": [ | ||
@@ -30,3 +33,9 @@ "dist" | ||
}, | ||
"gitHead": "30a556166294d7fe5377fc3562c6bd28af2de929" | ||
"jest": { | ||
"testEnvironment": "jsdom", | ||
"moduleNameMapper": { | ||
"^react($|/.+)": "<rootDir>/node_modules/react$1" | ||
} | ||
}, | ||
"gitHead": "db751b706b914caf3e4998a10be7f395daddc1f3" | ||
} |
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
27891
317