videoplayer warn message fix

This commit is contained in:
yonghyon
2024-07-29 14:47:05 +09:00
parent a57610fe29
commit aba809c2fb
3 changed files with 11 additions and 6 deletions

View File

@@ -14,8 +14,8 @@ const OnSaleIcon = ({ iconType = "normal" }) => {
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
clip-rule="evenodd"
fillRule="evenodd"
clipRule="evenodd"
d="M11.366 4.5332C9.70912 4.5332 8.36598 5.87635 8.36598 7.5332V18.4178H5.2558C2.52393 18.4178 1.21379 21.7718 3.22236 23.6235L20.6371 39.6781C21.7859 40.7371 23.5552 40.7371 24.704 39.6781L42.1187 23.6235C44.1273 21.7718 42.8171 18.4178 40.0853 18.4178H35.7968V7.5332C35.7968 5.87635 34.4536 4.5332 32.7968 4.5332H11.366ZM18.2997 14.0908C17.3055 14.0908 16.4997 14.8967 16.4997 15.8908C16.4997 16.8849 17.3056 17.6908 18.2997 17.6908C19.2938 17.6908 20.0997 16.8849 20.0997 15.8908C20.0997 14.8967 19.2938 14.0908 18.2997 14.0908ZM14.2497 15.8908C14.2497 13.654 16.0629 11.8408 18.2997 11.8408C20.5364 11.8408 22.3497 13.654 22.3497 15.8908C22.3497 18.1275 20.5364 19.9408 18.2997 19.9408C16.0629 19.9408 14.2497 18.1275 14.2497 15.8908ZM28.5902 14.6078C29.0295 15.0471 29.0295 15.7594 28.5902 16.1988L18.6077 26.1813C18.1683 26.6206 17.456 26.6206 17.0167 26.1813C16.5773 25.7419 16.5773 25.0296 17.0167 24.5903L26.9992 14.6078C27.4385 14.1685 28.1508 14.1685 28.5902 14.6078ZM25.5372 24.9201C25.5372 23.9233 26.3441 23.1201 27.3372 23.1201C28.3284 23.1201 29.1372 23.9289 29.1372 24.9201C29.1372 25.9169 28.3303 26.7201 27.3372 26.7201C26.346 26.7201 25.5372 25.9113 25.5372 24.9201ZM27.3372 20.8701C25.1052 20.8701 23.2872 22.6769 23.2872 24.9201C23.2872 27.1539 25.1034 28.9701 27.3372 28.9701C29.5691 28.9701 31.3872 27.1633 31.3872 24.9201C31.3872 22.6863 29.571 20.8701 27.3372 20.8701Z"
fill={themeColor}
/>

View File

@@ -66,7 +66,9 @@ export default function TReactPlayer({
!Object.prototype.hasOwnProperty.call(videoNode, "proportionPlayed")
) {
//youtube
window.videoNode = videoNode;
if (typeof window && !window.PalmSystem) {
window.videoNode = videoNode;
}
videoNode.play = videoNode.playVideo;
videoNode.pause = videoNode.pauseVideo;
videoNode.seek = videoNode.seekTo;
@@ -101,7 +103,7 @@ export default function TReactPlayer({
},
proportionLoaded: {
get: function () {
return videoNode?.playerInfo?.videoBytesLoaded >= 1; //todo
return videoNode?.getVideoBytesLoaded() ?? 0;
},
},
proportionPlayed: {
@@ -119,7 +121,7 @@ export default function TReactPlayer({
videoNode.setPlaybackRate(playbackRate);
}
},
}
},
});
}
}

View File

@@ -2209,7 +2209,10 @@ const VideoPlayerBase = class extends React.Component {
mediaProps.height = height;
mediaProps.videoRef = this.setVideoRef;
mediaProps.config = reactPlayerConfig;
mediaProps.isYoutube = isYoutube;
delete mediaProps.onUpdate;
delete mediaProps.mediaComponent;
delete mediaProps.ref;
// mediaProps.isYoutube = isYoutube;
}
const controlsAriaProps = this.getControlsAriaProps();