diff options
-rw-r--r-- | lib/App/MediaControl/Web.rakumod | 1 | ||||
-rw-r--r-- | resources/index.html | 4 |
2 files changed, 5 insertions, 0 deletions
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 @@ <td><button onclick="vlcCommand('seek',{val:'+30'})" class="control small">+30"</button></td> <td><button onclick="vlcCommand('seek',{val:'+60'})" class="control small">+1'</button></td> </tr> + <tr> + <td><button onclick="vlcCommand('snapshot')" class="control">📷</button></td> + <td colspan="5"> </td> + </tr> </table> </details> <details id="files" class="file-list"> |