fixed build error

This commit is contained in:
yonghyon
2024-04-19 14:22:14 +09:00
parent 04272034af
commit 5f27fdb58c

View File

@@ -13,7 +13,7 @@ export default function TReactPlayer({mediaEventsMap=handledMediaEventsMap, vide
if(videoRef ){
const videoNode = playerRef.current.getInternalPlayer();
videoRef(videoNode);
if (!videoNode.hasOwnProperty('proportionPlayed')){
if(!Object.prototype.hasOwnProperty.call(videoNode, "proportionPlayed")){
Object.defineProperties(videoNode, {
'error': {
get: function() {