Skip to content

Commit

Permalink
Merge pull request #70 from omalk98/issue-46
Browse files Browse the repository at this point in the history
Added responsive view for video playback page
  • Loading branch information
arjxn-py authored Oct 21, 2023
2 parents 729a88c + 1e47493 commit c86d569
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/components/Video/Player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ const Player = (props: any) => {
};

return (
<>
<div className="youtube">
<YouTube
onPlaybackRateChange={playbackchange}
Expand All @@ -79,7 +78,6 @@ const Player = (props: any) => {
/>
<TranslatedAudio />
</div>
</>
);
};

Expand Down
4 changes: 2 additions & 2 deletions src/components/Video/translatedAudio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ const TranslatedAudio = () => {
};

return (
<>
<div className="youtube">
<Button onClick={gts}>Get Translated Audio</Button>
{audio && <audio id="translatedAudio" src={audio} controls />}
</>
</div>
);
};

Expand Down
6 changes: 6 additions & 0 deletions src/components/Video/video.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@

.youtube {
display: flex;
flex-wrap: wrap;
margin-left: 30px;
justify-content: space-around;
align-items: center;
Expand All @@ -87,3 +88,8 @@
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}

.youtube iframe {
width: 100%;
aspect-ratio: 16/9;
}

0 comments on commit c86d569

Please sign in to comment.