Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
command/playbackstate playcurrent to play the currently selected track
  • Loading branch information
eschava committed Oct 31, 2019
commit fbb9f219f179393cf64fb9033d7b34a436154d4c
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ The addon listens to the following topics (prefixed with the configured topic pr
- "toggle" to toggle between play and pause
- "next" to play the next track
- "previous" to play the previous track
- "playcurrent" to play the currently selected track


See also
Expand Down
3 changes: 3 additions & 0 deletions service.mqtt/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ def processplaybackstate(data):
player.playnext()
elif data=="previous":
player.playprevious()
elif data=="playcurrent":
path = xbmc.getInfoLabel('ListItem.FileNameAndPath')
sendrpc("Player.Open", {"item": {"file": path}})

def processcommand(topic,data):
if topic=="notify":
Expand Down