From 2702c40734efa883bfd1f0cbc4f08a8fe12f1a2a Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Wed, 7 Nov 2018 19:08:06 -0800 Subject: binding: bluetooth: add MediaPlayer1 interface media events Report back MediaPlayer1 interface events for A2DP media playback Bug-AGL: SPEC-1630 Change-Id: I777f19af2de247fe676d5bede4bacbbad8ca9844 Signed-off-by: Matt Ranostay --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 24ea06b..e6997a2 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,7 @@ To do the same for the respective device, verb, and for singular profile | Name | Description | JSON Event Data | |-------------------|------------------------------------------|-------------------------------------------| | device_changes | report on bluetooth devices | see device_changes event section | +| media | report on MediaPlayer1 events | see media event section | | agent | PIN from BlueZ agent for confirmation | see agent event section | @@ -211,6 +212,30 @@ Changed status events for a device: } +### media event + +Playing audio reporting event (not all fields will be passed in every event): + +
+{
+        "adapter": "hci0",
+        "device": "dev_D0_81_7A_5A_BC_5E",
+        "track": {
+                "title": "True Colors",
+                "duration": 228000,
+                "album": "True Colors",
+                "tracknumber": 6,
+                "artist": "Zedd",
+                "numberoftracks": 11,
+                "genre": "Dance & DJ/General"
+        },
+        "position": 5600,
+        "status": "playing"
+        "connected": false
+}
+
+ + ### agent event After pairing request agent will send event for a pincode that must be confirmed on both sides: -- cgit 1.2.3-korg