From 971971d5fbf9a0b984c346d2c378c626f5d0f787 Mon Sep 17 00:00:00 2001 From: filesite Date: Wed, 17 Jul 2024 00:00:15 +0800 Subject: [PATCH] add screenshot button --- themes/beauty/views/site/player.php | 6 +++++- www/js/beauty.js | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/themes/beauty/views/site/player.php b/themes/beauty/views/site/player.php index 0880dff..7038684 100644 --- a/themes/beauty/views/site/player.php +++ b/themes/beauty/views/site/player.php @@ -38,8 +38,12 @@
+ - ⬇️ + download icon 下载视频
diff --git a/www/js/beauty.js b/www/js/beauty.js index 4d1f28e..d511d72 100644 --- a/www/js/beauty.js +++ b/www/js/beauty.js @@ -370,4 +370,8 @@ if ($('#my-player').length > 0 && typeof(videojs) != 'undefined') { setTimeout(takeScreenshot, screenshot_start); }); + + $('.btn-snapshot').click(function() { + takeScreenshot(); + }); } \ No newline at end of file