aboutsummaryrefslogtreecommitdiff
path: root/src/app/anime/components/vidButtonContainer.jsx
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-06-07 22:04:34 +0530
committerreal-zephex <[email protected]>2024-06-07 22:04:34 +0530
commitae07f75b7465855c38681e8594b8b5a028f14f0b (patch)
tree4452ca5ad17b5e66224463c1418e55eeed6a1c68 /src/app/anime/components/vidButtonContainer.jsx
parentstyle ✨: improved UI for history page (diff)
downloaddramalama-ae07f75b7465855c38681e8594b8b5a028f14f0b.tar.xz
dramalama-ae07f75b7465855c38681e8594b8b5a028f14f0b.zip
feat �: anime video links are now automatically copied to the clipboard
Diffstat (limited to 'src/app/anime/components/vidButtonContainer.jsx')
-rw-r--r--src/app/anime/components/vidButtonContainer.jsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/app/anime/components/vidButtonContainer.jsx b/src/app/anime/components/vidButtonContainer.jsx
index c383c3d..f503557 100644
--- a/src/app/anime/components/vidButtonContainer.jsx
+++ b/src/app/anime/components/vidButtonContainer.jsx
@@ -74,7 +74,9 @@ const EpisodesContainer = ({ data: data }) => {
);
const videoURL = await video_url(id);
setVideoLoading(<></>);
- setVideoLink(videoURL.sources[videoURL.sources.length - 2].url);
+ const video_link = videoURL.sources[videoURL.sources.length - 2].url;
+ await navigator.clipboard.writeText(video_link);
+ setVideoLink(video_link);
}
return (
@@ -88,8 +90,7 @@ const EpisodesContainer = ({ data: data }) => {
aspectRatio="16/9"
load="eager"
playsInline
- volume={0.8}
- autoPlay
+ volume={0.5}
>
<MediaProvider />
<DefaultVideoLayout icons={defaultLayoutIcons} />