From 8a0705c927abadf138384315441023ab06561e4e Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Fri, 7 Oct 2022 12:07:42 +1100 Subject: [PATCH] thrimbletrimmer: Add button to download current frame It always uses source quality and downloads as a PNG. We use the browser.downloads api to construct the URL on demand. Note we might not always get the exact right frame in 60fps streams, we might get one before or after (and "frame seek" in the editor skips 2 frames in this case). --- thrimbletrimmer/edit.html | 1 + thrimbletrimmer/index.html | 1 + thrimbletrimmer/scripts/common.js | 34 +++++++++++++++++++++++++++++++ thrimbletrimmer/scripts/edit.js | 28 ++++--------------------- thrimbletrimmer/scripts/stream.js | 4 ++++ 5 files changed, 44 insertions(+), 24 deletions(-) diff --git a/thrimbletrimmer/edit.html b/thrimbletrimmer/edit.html index dc7a38e..41b45d7 100644 --- a/thrimbletrimmer/edit.html +++ b/thrimbletrimmer/edit.html @@ -231,6 +231,7 @@ Download Video + Download Current Frame as Image
diff --git a/thrimbletrimmer/index.html b/thrimbletrimmer/index.html index 92f65a0..34c683f 100644 --- a/thrimbletrimmer/index.html +++ b/thrimbletrimmer/index.html @@ -125,6 +125,7 @@
Download Video + Download Current Frame as Image Convert Times