Skip to content

Commit

Permalink
Revert "enable youtube video if yt-dlp fails"
Browse files Browse the repository at this point in the history
  • Loading branch information
ishvindersethi22 authored Aug 1, 2024
1 parent c71c12c commit 3b096e0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/containers/Organization/Video/components/VideoPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,6 @@ const VideoPanel = memo(

return (
<div className={classes.videoPlayerParent} style={{display: "flex", alignItems: "center", justifyContent: "center", height:"100%"}}>
{ videoDetails !== undefined && (videoDetails?.direct_video_url?.includes("youtube.com") ?
<iframe
className={classes.videoPlayer}
style={{
height: "30%",
marginTop:"auto",
marginBottom:"auto",
}}
src={videoDetails.direct_video_url}>
</iframe>
:
<video
// onClick={onClick}
src={
Expand All @@ -86,7 +75,6 @@ const VideoPanel = memo(
controls={true}
controlsList="nodownload"
/>
)}
</div>
);
},
Expand Down

0 comments on commit 3b096e0

Please sign in to comment.