@@ -100,13 +101,19 @@ height: 50px;
- + - - Play/Pause - +
+ + play_arrow + pause + + + +
+
Skip
@@ -118,7 +125,7 @@ height: 50px; fast_forward
- +
Chapter
@@ -129,7 +136,7 @@ height: 50px;
- +
Volume
@@ -142,6 +149,7 @@ height: 50px; volume_off
+
@@ -152,7 +160,7 @@ height: 50px;
- + @@ -161,7 +169,16 @@ height: 50px; - + 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" +}