Files
esp-idf/examples/bluetooth/bluedroid/classic_bt/avrcp_ct_metadata/README.md
T
yangfeng bb46db736c refactor(examples/classic_bt): Refactor A2DP sink and AVRCP examples
- Add avrcp_ct_metadata example
- Add avrcp_absolute_volume example
- Add the example components about common code for a2dp sink and avrcp
2025-12-19 11:31:15 +08:00

2.3 KiB

Supported Targets ESP32

AVRCP-CT-METADATA EXAMPLE

This is the example of API implementing Audio/Video Remote Control Profile to get metadata.

Required components

+---------------------------------------------------+---------------------+
|                avrcp_metadata_utils               |                     |
+---------------------------------------------------+                     |
|                 avrcp_common_utils                |                     |
+-------------------------+-------------------------+                     |
|a2dp_sink_int_codec_utils|a2dp_sink_ext_codec_utils|  bt_app_core_utils  |
+-------------------------+-------------------------+                     |
|               a2dp_sink_common_utils              |                     |
+---------------------------------------------------+                     |
|               bredr_app_common_utils              |                     |
+---------------------------------------------------+---------------------+

Detailed information can be viewed through the ../common/README.md.

How to use this example

Configure the project

idf.py menuconfig

Build and Flash

Build the project and flash it to the board, then run monitor tool to view serial output.

idf.py -p PORT flash monitor

(To exit the serial monitor, type Ctrl-].)

Example Output

The output when receiving metadata:

I (81700) RC_CT: AVRC event notification: 2
I (81740) RC_CT: AVRC metadata rsp: attribute id 0x1, 
I (81740) RC_CT: AVRC metadata rsp: attribute id 0x2, 
I (81740) RC_CT: AVRC metadata rsp: attribute id 0x4, 
I (81750) RC_CT: AVRC metadata rsp: attribute id 0x20,

Troubleshooting

For any technical queries, please open an issue on GitHub. We will get back to you soon.