1{ 2 "FLAGS": "browsable", 3 4 "METADATA": { 5 "MEDIA_ID": "simple_leaves", 6 "DISPLAY_TITLE": "Simple leaves" 7 }, 8 9 "CHILDREN": [ 10 { 11 "FLAGS": "playable", 12 "METADATA": { 13 "MEDIA_ID": "simple_leaves normal 10s song", 14 "DISPLAY_TITLE": "A normal 10s song with a long title. A normal 10s song with a long title. A normal 10s song with a long title. ", 15 "DURATION": 10000 16 } 17 }, 18 { 19 "FLAGS": "playable", 20 "METADATA": { 21 "MEDIA_ID": "simple_leaves normal 1H song", 22 "DISPLAY_TITLE": "A normal 1H song", 23 "ARTIST": "Artist", 24 "ALBUM":"Album", 25 "DURATION": 3600000 26 } 27 }, 28 { 29 "FLAGS": "playable", 30 "METADATA": { 31 "MEDIA_ID": "simple_leaves slow connection", 32 "DISPLAY_TITLE": "Connects and buffers for 4s each", 33 "DISPLAY_SUBTITLE": "A very long subtitle. A very long subtitle. A very long subtitle. A very long subtitle. A very long subtitle. A very long subtitle. ", 34 "ARTIST": "This is a very long artist name. This is a very long artist name. This is a very long artist name.", 35 "ALBUM":"Album", 36 "DURATION": 30000 37 }, 38 "EVENTS": [ 39 { "STATE": "CONNECTING", "POST_DELAY_MS": 50 }, 40 { "STATE": "BUFFERING", "POST_DELAY_MS": 4000 }, 41 { "STATE": "PLAYING", "POST_DELAY_MS": 4000 } 42 ] 43 }, 44 { 45 "FLAGS": "playable", 46 "METADATA": { 47 "MEDIA_ID": "simple_leaves poor internet", 48 "DISPLAY_TITLE": "Poor internet quality at 2s", 49 "ARTIST": "Artist", 50 "DURATION": 30000 51 }, 52 "EVENTS": [ 53 { "STATE": "PLAYING", "POST_DELAY_MS": 0 }, 54 { 55 "STATE": "PLAYING", 56 "ERROR_CODE": "APP_ERROR", 57 "ERROR_MESSAGE": "Bad connection, sorry for the low quality", 58 "POST_DELAY_MS": 2000 59 } 60 ] 61 }, 62 { 63 "FLAGS": "playable", 64 "METADATA": { 65 "MEDIA_ID": "simple_leaves cache failure", 66 "DISPLAY_TITLE": "Caching failure at 2s", 67 "DISPLAY_SUBTITLE": "Show a toast", 68 "ALBUM":"This is a very long album title. This is a very long album title. This is a very long album title.", 69 "DURATION": 30000 70 }, 71 "EVENTS": [ 72 { "STATE": "PLAYING", "POST_DELAY_MS": 0 }, 73 { 74 "STATE": "PAUSED", 75 "ERROR_CODE": "APP_ERROR", 76 "ERROR_MESSAGE": "End of cache reached. Please check your data connection.", 77 "POST_DELAY_MS": 2000 78 } 79 ] 80 }, 81 { 82 "FLAGS": "playable", 83 "METADATA": { 84 "MEDIA_ID": "simple_leaves error code", 85 "DISPLAY_TITLE": "Parental Control error code at 1s", 86 "DISPLAY_SUBTITLE": "Show a toast", 87 "DURATION": 10000 88 }, 89 "EVENTS": [ 90 { "STATE": "PLAYING", "POST_DELAY_MS": 0 }, 91 { 92 "STATE": "ERROR", 93 "ERROR_CODE": "PARENTAL_CONTROL_RESTRICTED", 94 "POST_DELAY_MS": 1000 95 } 96 ] 97 }, 98 { 99 "FLAGS": "playable", 100 "METADATA": { 101 "MEDIA_ID": "simple_leaves premium required", 102 "DISPLAY_TITLE": "Paid account required at 1s", 103 "DISPLAY_SUBTITLE": "Show a dialog", 104 "DURATION": 50000 105 }, 106 "EVENTS": [ 107 { "STATE": "PLAYING", "POST_DELAY_MS": 0 }, 108 { 109 "STATE": "ERROR", 110 "ERROR_CODE": "PREMIUM_ACCOUNT_REQUIRED", 111 "ERROR_MESSAGE": "A premium account is needed to play this track completely...", 112 "ACTION_LABEL": "Upgrade now", 113 "INTENT": "PREFS", 114 "POST_DELAY_MS": 1000 115 } 116 ] 117 }, 118 { 119 "FLAGS": "playable", 120 "METADATA": { 121 "MEDIA_ID": "simple_leaves bluetooth disconnected and reconnected", 122 "DISPLAY_TITLE": "Bluetooth disconnected at 2s and reconnected at 8s", 123 "DURATION": 20000 124 }, 125 "EVENTS": [ 126 { "STATE": "PLAYING", "POST_DELAY_MS": 0 }, 127 { 128 "STATE": "ERROR", 129 "ERROR_MESSAGE": "Bluetooth audio disconnected.", 130 "POST_DELAY_MS": 2000 131 }, 132 { 133 "ACTION": "RESET_METADATA", 134 "POST_DELAY_MS": 6000 135 }, 136 { 137 "STATE": "PLAYING", 138 "POST_DELAY_MS": 3000 139 } 140 ] 141 } 142 ] 143} 144