add protocol

master
Jing Sun 9 years ago
parent 52d3c0b1af
commit c923b6358d

@ -0,0 +1,42 @@
--------------------------------------------------------------------------------
Status (from Server):
--------------------------------------------------------------------------------
Response:
{
"type": "status",
"totalDuration": 250,
"currentDuration": 2,
"volume": 50,
"fileName": "Foo",
"isPlaying": true
}
--------------------------------------------------------------------------------
Seek:
--------------------------------------------------------------------------------
Request:
{
"command": "seek",
"seekValue":30
}
--------------------------------------------------------------------------------
Seek Chapter:
--------------------------------------------------------------------------------
Request:
{
"command": "seekChapter",
"direction":"forward"
}
--------------------------------------------------------------------------------
Play
--------------------------------------------------------------------------------
Request:
{
"command": "play"
}
--------------------------------------------------------------------------------
Pause
--------------------------------------------------------------------------------
Request:
{
"command": "pause"
}
Loading…
Cancel
Save