Skip to content

Commit

Permalink
Merge pull request #774 from AI4Bharat/revert-773-reports4
Browse files Browse the repository at this point in the history
Revert "enable youtube video if yt-dlp fails"
  • Loading branch information
ishvindersethi22 authored Aug 1, 2024
2 parents c71c12c + 3b096e0 commit b0f8d87
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 b0f8d87

Please sign in to comment.