cueplayer-react
Advanced tools
Comparing version 0.3.9 to 0.3.10
@@ -0,1 +1,6 @@ | ||
<a name="0.3.10"></a> | ||
## [0.3.10](https://github.com/joelhooks/cueplayer-react/compare/0.0.6...0.3.10) (2021-06-11) | ||
<a name="0.3.9"></a> | ||
@@ -2,0 +7,0 @@ ## [0.3.9](https://github.com/joelhooks/cueplayer-react/compare/0.0.6...0.3.9) (2021-06-11) |
@@ -54,2 +54,3 @@ "use strict"; | ||
_this.handleClick = _this.handleClick.bind((0, _assertThisInitialized2["default"])(_this)); | ||
_this.handleFullScreenChange = _this.handleFullScreenChange.bind((0, _assertThisInitialized2["default"])(_this)); | ||
return _this; | ||
@@ -59,17 +60,19 @@ } | ||
(0, _createClass2["default"])(FullscreenToggle, [{ | ||
key: "handleClick", | ||
value: function handleClick() { | ||
key: "componentDidMount", | ||
value: function componentDidMount() { | ||
_fullscreen["default"].addEventListener(this.handleFullScreenChange); | ||
} | ||
}, { | ||
key: "componentWillUnmount", | ||
value: function componentWillUnmount() { | ||
_fullscreen["default"].removeEventListener(this.handleFullScreenChange); | ||
} | ||
}, { | ||
key: "handleFullScreenChange", | ||
value: function handleFullScreenChange(event) { | ||
var _this$props = this.props, | ||
player = _this$props.player, | ||
actions = _this$props.actions, | ||
fullscreenElement = _this$props.fullscreenElement; | ||
actions.toggleFullscreen(player, fullscreenElement); | ||
console.log('fullscreen click', { | ||
fullscreenElement: fullscreenElement | ||
}); | ||
fullscreenElement = _this$props.fullscreenElement, | ||
actions = _this$props.actions; | ||
if (fullscreenElement) { | ||
console.log('fullscreen action', { | ||
fullscreenElement: fullscreenElement | ||
}); | ||
if (event.target === fullscreenElement) { | ||
actions.handleFullscreenChange(_fullscreen["default"].isFullscreen); | ||
@@ -79,2 +82,11 @@ } | ||
}, { | ||
key: "handleClick", | ||
value: function handleClick() { | ||
var _this$props2 = this.props, | ||
player = _this$props2.player, | ||
actions = _this$props2.actions, | ||
fullscreenElement = _this$props2.fullscreenElement; | ||
actions.toggleFullscreen(player, fullscreenElement); | ||
} | ||
}, { | ||
key: "render", | ||
@@ -84,5 +96,5 @@ value: function render() { | ||
var _this$props2 = this.props, | ||
player = _this$props2.player, | ||
className = _this$props2.className; | ||
var _this$props3 = this.props, | ||
player = _this$props3.player, | ||
className = _this$props3.className; | ||
return /*#__PURE__*/_react["default"].createElement("button", { | ||
@@ -89,0 +101,0 @@ className: (0, _classnames["default"])(className, { |
{ | ||
"name": "cueplayer-react", | ||
"version": "0.3.9", | ||
"version": "0.3.10", | ||
"description": "cueplayer-react is a web video player built from the ground up for an HTML5 world using React library.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
3128382
28124