@faintlines/video-player
Advanced tools
Comparing version 1.1.14 to 1.1.15
@@ -170,3 +170,3 @@ import React, { forwardRef, useState, useRef, useEffect, useContext } from 'react'; | ||
setPlaying(true); | ||
playerRef === null || playerRef === void 0 ? void 0 : (_playerRef$current3 = playerRef.current) === null || _playerRef$current3 === void 0 ? void 0 : (_playerRef$current3$g = _playerRef$current3.getInternalPlayer()) === null || _playerRef$current3$g === void 0 ? void 0 : _playerRef$current3$g.play(); | ||
return playerRef === null || playerRef === void 0 ? void 0 : (_playerRef$current3 = playerRef.current) === null || _playerRef$current3 === void 0 ? void 0 : (_playerRef$current3$g = _playerRef$current3.getInternalPlayer()) === null || _playerRef$current3$g === void 0 ? void 0 : _playerRef$current3$g.play(); | ||
}, | ||
@@ -177,3 +177,3 @@ pause: function pause() { | ||
setPlaying(false); | ||
playerRef === null || playerRef === void 0 ? void 0 : (_playerRef$current4 = playerRef.current) === null || _playerRef$current4 === void 0 ? void 0 : (_playerRef$current4$g = _playerRef$current4.getInternalPlayer()) === null || _playerRef$current4$g === void 0 ? void 0 : _playerRef$current4$g.pause(); | ||
return playerRef === null || playerRef === void 0 ? void 0 : (_playerRef$current4 = playerRef.current) === null || _playerRef$current4 === void 0 ? void 0 : (_playerRef$current4$g = _playerRef$current4.getInternalPlayer()) === null || _playerRef$current4$g === void 0 ? void 0 : _playerRef$current4$g.pause(); | ||
}, | ||
@@ -183,3 +183,9 @@ seekTo: function seekTo(time) { | ||
return playerRef === null || playerRef === void 0 ? void 0 : (_playerRef$current5 = playerRef.current) === null || _playerRef$current5 === void 0 ? void 0 : _playerRef$current5.seekTo(time, "seconds"); | ||
var player = playerRef === null || playerRef === void 0 ? void 0 : (_playerRef$current5 = playerRef.current) === null || _playerRef$current5 === void 0 ? void 0 : _playerRef$current5.getInternalPlayer(); | ||
if (player) { | ||
player.currentTime = time; | ||
} // TODO: the following doesn't work. figure out why | ||
// playerRef?.current?.seekTo(time, "seconds"); | ||
} | ||
@@ -186,0 +192,0 @@ }; |
{ | ||
"name": "@faintlines/video-player", | ||
"version": "1.1.14", | ||
"version": "1.1.15", | ||
"description": "", | ||
@@ -36,3 +36,3 @@ "license": "UNLICENSED", | ||
}, | ||
"gitHead": "9d27de38e84b62a5d537ab9ac61ff9a89167466a" | ||
"gitHead": "02661259b0aaeb0368b11d22d8166f96b28382b7" | ||
} |
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
20075
240