Commit e1f3dcec authored by Simon Kirsten's avatar Simon Kirsten
Browse files

Added missing quickstart snippets and fixed examples

parent 0a75ee78
......@@ -18,19 +18,21 @@ Stop with Ctrl-C or close this terminal.
1. Open <http://127.0.0.1:8080> in a browser. Leave this tab / window open while you do the other steps.
2. Get the current state of the tv:
``` tab="Browser"
http://127.0.0.1:8080/tv/state
``` md tab="Browser"
> http://127.0.0.1:8080/tv/state
```
``` java tab="Remote (Android)"
TODO
``` java tab="StreamTV.java" linenums="1"
StreamTV streamTV = new StreamTV("10.0.2.2:8080");
JSONObject state = streamTV.tvState(null, null, null, null, null);
```
!!! example
``` json
{
"large_channel": null,
"small_channel": null,
"large_channel": "",
"small_channel": "",
"volume": 0.5,
"small_scale": 0.3,
"show_chat": false
......@@ -39,12 +41,14 @@ Stop with Ctrl-C or close this terminal.
3. Find some stream on twitch:
``` tab="Browser"
http://127.0.0.1:8080/twitch/streams/top
``` md tab="Browser"
> http://127.0.0.1:8080/twitch/streams/top
```
``` java tab="Remote (Android)"
TODO
``` java tab="StreamTV.java" linenums="1"
StreamTV streamTV = new StreamTV("10.0.2.2:8080");
List<JSONObject> topStreams = streamTV.twitchStreamsTop(null, null, null); // no filters
```
!!! example
......@@ -70,19 +74,21 @@ Stop with Ctrl-C or close this terminal.
4. Start playback of some stream with chat and muted volume:
``` tab="Browser"
http://127.0.0.1:8080/tv/state?large_channel={channel here}&volume=0&show_chat=true
``` md tab="Browser"
> http://127.0.0.1:8080/tv/state?large_channel={channel here}&volume=0&show_chat=true
```
``` java tab="Remote (Android)"
TODO
``` java tab="StreamTV.java" linenums="1"
StreamTV streamTV = new StreamTV("10.0.2.2:8080");
JSONObject state = streamTV.tvState("{channel here}", null, 0.0f, null, true);
```
!!! example
``` json
{
"large_channel": "riotgames",
"small_channel": null,
"small_channel": "",
"volume": 0,
"small_scale": 0.3,
"show_chat": true
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment