diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-11-07 19:08:06 -0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-11-23 08:49:14 -0800 |
commit | 2702c40734efa883bfd1f0cbc4f08a8fe12f1a2a (patch) | |
tree | 2790b47f04569c2bd0de11d8fc93b32bc52f3372 /README.md | |
parent | f4e8cddddc0675821de04bacdb36b0bb33daaceb (diff) |
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 <matt.ranostay@konsulko.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -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: } </pre> +### media event + +Playing audio reporting event (not all fields will be passed in every event): + +<pre> +{ + "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 +} +</pre> + + ### agent event After pairing request agent will send event for a pincode that must be confirmed on both sides: |