@@ -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; - + From c923b6358d8144464516f15a029e97f26cd5d588 Mon Sep 17 00:00:00 2001 From: Jing Sun Date: Tue, 27 Dec 2016 16:59:51 +0100 Subject: [PATCH 2/2] add protocol --- protocol | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 protocol 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" +}