Add stop command

This commit is contained in:
Jeremy Gardais 2022-07-04 10:37:07 +02:00
parent c71d322eee
commit a9b8c5ca94
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 8 additions and 1 deletions

View File

@ -40,6 +40,9 @@ EXAMPLES:
- Start Kodi if not already running
${PROGNAME}
- Stop current current media
${PROGNAME} --command stop
- Send default action (${USER_MULTIMEDIA_COMMAND_DEFAULT}) to Kodi instance
${PROGNAME}
@ -47,6 +50,7 @@ OPTIONS:
-c,--command
Send a command to running Kodi. Available commands :
* toggle, play, pause
* stop
* next
* previous
* random, party, partymode
@ -96,6 +100,9 @@ define_vars() { # {{{
toggle|play|pause ) ## Toggle current play
KODI_ACTION="PlayerControl(play)"
;;
stop ) ## Stop current play
KODI_ACTION="PlayerControl(stop)"
;;
next ) ## Next element in the playlist
KODI_ACTION="PlayerControl(next)"
;;