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