From ae07f75b7465855c38681e8594b8b5a028f14f0b Mon Sep 17 00:00:00 2001 From: real-zephex Date: Fri, 7 Jun 2024 22:04:34 +0530 Subject: =?UTF-8?q?feat=20=EF=BF=BD:=20anime=20video=20links=20are=20now?= =?UTF-8?q?=20automatically=20copied=20to=20the=20clipboard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/anime/components/vidButtonContainer.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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} > -- cgit v1.2.3