diff --git a/protocol b/protocol new file mode 100644 index 0000000..24a6fbd --- /dev/null +++ b/protocol @@ -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" +}