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