How do I add a custom download button? #963
Closed
gajraj-gan
started this conversation in
General
Replies: 2 comments 4 replies
-
Create a download link like so: <a href="path_to_video_file" download="video_file_name" aria-label="Download video">
<!-- icon here. -->
</a> |
Beta Was this translation helpful? Give feedback.
4 replies
-
I did this. <DefaultVideoLayout
icons={defaultLayoutIcons}
slots={{
beforeSettingsMenu: (
<button type="button" onClick={() => window.open(src, '_blank')}>
<DownloadIcon color="white" size={32} />
</button>
)
}}
/> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Same as title, as far as I have read the docs we can access the data of video using the hooks but how do i add a custom button for dowloading?
Beta Was this translation helpful? Give feedback.
All reactions