From 64d6b5e0d6e6b1473821873cbe149c4333cabf45 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 23 Apr 2022 15:34:02 +0000 Subject: snapshot button --- lib/App/MediaControl/Web.rakumod | 1 + resources/index.html | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib/App/MediaControl/Web.rakumod b/lib/App/MediaControl/Web.rakumod index ac65b5f..77d8e05 100644 --- a/lib/App/MediaControl/Web.rakumod +++ b/lib/App/MediaControl/Web.rakumod @@ -29,6 +29,7 @@ class App::MediaControl::Web { post -> 'subs' { await self.vlc.command('key', val=>'subtitle-track') } post -> 'audio' { await self.vlc.command('key', val=>'audio-track') } post -> 'seek', :$val { await self.vlc.command('seek',:$val) } + post -> 'snapshot', :$val { await self.vlc.command('key',val=>'snapshot') } get -> 'status' { my $status = await self.vlc.status(); diff --git a/resources/index.html b/resources/index.html index c8901d7..095df5a 100644 --- a/resources/index.html +++ b/resources/index.html @@ -395,6 +395,10 @@ + + +   +
-- cgit v1.2.3