Skip to content

Instantly share code, notes, and snippets.

@florianherrengt
Last active April 9, 2016 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save florianherrengt/d951415e61b4c29f8ee3a25c12e7fc1f to your computer and use it in GitHub Desktop.
Save florianherrengt/d951415e61b4c29f8ee3a25c12e7fc1f to your computer and use it in GitHub Desktop.
osmc play next video

This script will automatically stop the video and play the next one in the list

  • Replace 192.168.1.188:8080 with the correct ip address and port
  • Install Chorus
#!/bin/sh
curl 'http://192.168.1.188:8080/jsonrpc' -H 'Pragma: no-cache' -H 'Origin: http://192.168.1.188:8080' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8,fr;q=0.6' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Cache-Control: no-cache' -H 'X-Requested-With: XMLHttpRequest' -H 'Cookie: filter=active' -H 'Connection: keep-alive' -H 'X-FirePHP-Version: 0.0.6' -H 'Referer: http://192.168.1.188:8080/' --data-binary '{"jsonrpc":"2.0","method":"Player.Stop","id":1,"params":[1]}' --compressed
curl 'http://192.168.1.188:8080/jsonrpc' -H 'Pragma: no-cache' -H 'Origin: http://192.168.1.188:8080' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8,fr;q=0.6' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Cache-Control: no-cache' -H 'X-Requested-With: XMLHttpRequest' -H 'Cookie: filter=active' -H 'Connection: keep-alive' -H 'X-FirePHP-Version: 0.0.6' -H 'Referer: http://192.168.1.188:8080/' --data-binary '{"jsonrpc":"2.0","method":"Input.Down","id":1}' --compressed
curl 'http://192.168.1.188:8080/jsonrpc' -H 'Pragma: no-cache' -H 'Origin: http://192.168.1.188:8080' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8,fr;q=0.6' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Cache-Control: no-cache' -H 'X-Requested-With: XMLHttpRequest' -H 'Cookie: filter=active' -H 'Connection: keep-alive' -H 'X-FirePHP-Version: 0.0.6' -H 'Referer: http://192.168.1.188:8080/' --data-binary '{"jsonrpc":"2.0","method":"Input.Select","id":1}' --compressed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment