Skip to content
This repository has been archived by the owner on Jun 24, 2019. It is now read-only.

lepisma/mpm-play

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpm-play

Simple audio player for mpm using mplayer.

API endpoints:

http :6672/
"Hello World"
# Current item in json
http :6672/current
{"id":3,"title":"Even in Death",
 "url":"yt:d_xEVzTDN3c","artist":"Evanescence",
 "album":"Lost Whispers","mtime":1504243645}
# Next Previous Seek Toggle
http :6672/next
http :6672/prev
http ":6672/seek?value=10"
http :6672/toggle
# Sleep after n items
http ":6672/sleep?value=3"
# Clear and add items
http :6672/clear
# Add takes form encoded data
http -f :6672/add ids="2,3"
# Play
http :6672/next
# Toggle repeat
http :6672/repeat
true
# Get player state
http :6672/state
{"repeat":false,"sleep":null,"list-length":41,"current":2,"played":false}