videoError Thumbnail test code
This commit is contained in:
@@ -1362,6 +1362,7 @@ const PlayerPanel = ({
|
||||
moreInfo: { reason: "hlsError" },
|
||||
})
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1497,7 +1498,7 @@ const PlayerPanel = ({
|
||||
// return "https://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4";
|
||||
|
||||
if (broadcast.type === "videoError") {
|
||||
return "";
|
||||
return null;
|
||||
}
|
||||
return playListInfo && playListInfo[selectedIndex]?.showUrl;
|
||||
}, [playListInfo, selectedIndex, broadcast]);
|
||||
@@ -1944,7 +1945,11 @@ const PlayerPanel = ({
|
||||
if (panelInfo.thumbnail) {
|
||||
videoContainer.style.background = `url(${panelInfo.thumbnail}) center center/cover`;
|
||||
}
|
||||
}, [panelInfo.thumbnail]);
|
||||
|
||||
if (broadcast.type === "videoError" && videoThumbnailUrl) {
|
||||
videoContainer.style.background = `url(${videoThumbnailUrl}) center center/cover`;
|
||||
}
|
||||
}, [panelInfo.thumbnail, broadcast]);
|
||||
|
||||
return (
|
||||
<TPanel
|
||||
@@ -2021,6 +2026,7 @@ const PlayerPanel = ({
|
||||
videoVerticalVisible={videoVerticalVisible}
|
||||
setCurrentTime={setCurrentTime}
|
||||
setIsVODPaused={setIsVODPaused}
|
||||
broadcast={broadcast}
|
||||
>
|
||||
{typeof window === "object" && window.PalmSystem && (
|
||||
<source src={currentPlayingUrl} type={videoType} />
|
||||
|
||||
Reference in New Issue
Block a user