From ecaf6821d61462c9fc006408a52cf7ec4ec817b1 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sun, 6 Mar 2022 15:42:29 +0000 Subject: buttons for subs/audio tracks --- lib/App/MediaControl/Web.rakumod | 2 ++ resources/index.html | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/lib/App/MediaControl/Web.rakumod b/lib/App/MediaControl/Web.rakumod index a4e42d8..2e0fad0 100644 --- a/lib/App/MediaControl/Web.rakumod +++ b/lib/App/MediaControl/Web.rakumod @@ -26,6 +26,8 @@ class App::MediaControl::Web { } post -> 'pause' { await self.vlc.command('pl_pause') } post -> 'stop' { await self.vlc.command('pl_stop') } + post -> 'subs' { await self.vlc.command('key', val=>'subtitle-track') } + post -> 'audio' { await self.vlc.command('key', val=>'audio-track') } get -> 'status' { my $status = await self.vlc.status(); diff --git a/resources/index.html b/resources/index.html index ef38d38..cafac48 100644 --- a/resources/index.html +++ b/resources/index.html @@ -331,6 +331,11 @@ + + +   + +

-- cgit v1.2.3