diff --git a/com.twin.app.shoptime/src/actions/commonActions.js b/com.twin.app.shoptime/src/actions/commonActions.js index 57d8cafe..87ff14a4 100644 --- a/com.twin.app.shoptime/src/actions/commonActions.js +++ b/com.twin.app.shoptime/src/actions/commonActions.js @@ -379,7 +379,7 @@ export const sendBroadCast = broadcastTimer = setTimeout(() => { //clear after 500ms dispatch(changeBroadcastEvent({})); - }, 20000); + }, 1000); }; export const requestLiveSubtitle = diff --git a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx index 44953191..fd3d5463 100644 --- a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx +++ b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx @@ -890,16 +890,6 @@ const PlayerPanel = ({ ] ); - useEffect(() => { - if (broadcast.type === "videoError") { - //setShowVideoErrorComponent(true); - // - //call false onBlur event - //setShowVideoErrorComponent(false); - } else { - } - }, [broadcast]); - useEffect(() => { //todo if(modal) return () => { @@ -1500,8 +1490,12 @@ const PlayerPanel = ({ const currentPlayingUrl = useMemo(() => { // return "https://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4"; + + if (broadcast.type === "videoError") { + return ""; + } return playListInfo && playListInfo[selectedIndex]?.showUrl; - }, [playListInfo, selectedIndex]); + }, [playListInfo, selectedIndex, broadcast]); const isYoutube = useMemo(() => { if (currentPlayingUrl && currentPlayingUrl.includes("youtu")) { @@ -1530,7 +1524,7 @@ const PlayerPanel = ({ return false; } return true; - }, [currentPlayingUrl, currentSubtitleUrl, currentSubtitleBlob]); + }, [currentPlayingUrl, currentSubtitleUrl, currentSubtitleBlob, broadcast]); const chatVisible = useMemo(() => { if (