1# Bluetooth Audio - Media player configuration options
2
3#
4# Copyright (c) 2022 Nordic Semiconductor
5#
6# SPDX-License-Identifier: Apache-2.0
7#
8
9config BT_MPL
10	bool "Support for media player"
11	help
12	  Enables support for media player
13	  Note that the provided media player is a sample that only provides a
14	  mock-up with no actual media being played.
15	  For real media playback, the sample must be extended, hooked up to a
16	  real media player or replaced with a real media player.
17
18if BT_MPL
19
20config BT_MPL_MEDIA_PLAYER_NAME
21	string "Media Player Name"
22	default "Player0"
23	help
24	  Use this option to set the name of the media player.
25
26config BT_MPL_MEDIA_PLAYER_NAME_MAX
27	int "Max length of media player name"
28	default 20
29	range 1 $(UINT8_MAX)
30	help
31	  Sets the maximum number of bytes (including the null termination) of
32	  the name of the media player.
33
34config BT_MPL_ICON_URL
35	string "Media player Icon URL"
36	default "http://server.some.where/path/icon.png"
37	help
38	  Use this option to set the URL of the Media Player Icon.
39
40config BT_MPL_ICON_URL_MAX
41	int "Max length of media player icon URL"
42	default 40
43	range 1 $(UINT8_MAX)
44	help
45	  Sets the maximum number of bytes (including the null termination) of
46	  the media player icon URL.
47
48config BT_MPL_TRACK_TITLE_MAX
49	int "Max length of the title of a track"
50	default 40
51	range 1 $(UINT8_MAX)
52	help
53	  Sets the maximum number of bytes (including the null termination) of
54	  the title of any track in the media player.
55
56config BT_MPL_SEGMENT_NAME_MAX
57	int "Max length of the name of a track segment"
58	default 25
59	range 1 $(UINT8_MAX)
60	help
61	  Sets the maximum number of bytes (including the null termination)
62	  of the name of any track segment in the media player.
63
64config BT_MPL_GROUP_TITLE_MAX
65	int "Max length of the title of a group of tracks"
66	default BT_MPL_TRACK_TITLE_MAX
67	range 1 $(UINT8_MAX)
68	help
69	  Sets the maximum number of bytes (including the null termination) of
70	  the title of any group in the media player.
71
72config BT_MPL_OBJECTS
73	bool "Support for media player objects"
74	depends on BT_OTS
75	# TODO: Temporarily depends also on BT_MCS, to avoid issues with the
76	# bt_mcs_get_ots() call
77	depends on BT_MCS
78	help
79	  Enables support for objects in the media player
80	  Objects are used to give/get more information about e.g. media tracks.
81	  Requires the Object Transfer Service
82
83if BT_MPL_OBJECTS
84
85config BT_MPL_MAX_OBJ_SIZE
86	int "Total memory size to use for storing the content of objects"
87	default 127
88	range 0 65536
89	help
90	  Sets the total memory size (in octets) to use for storing the content of objects.
91	  This is used for the total memory pool buffer size from which memory
92	  is allocated when sending object content.
93
94config BT_MPL_ICON_BITMAP_SIZE
95	int "Media player Icon bitmap object size"
96	default 127
97	help
98	  This option sets the maximum size (in octets) of the icon object.
99
100config BT_MPL_TRACK_MAX_SIZE
101	int "Maximum size for a track object"
102	default 127
103	help
104	  This option sets the maximum size (in octets) of a track object.
105
106endif # BT_MPL_OBJECTS
107
108endif # BT_MPL
109