aboutsummaryrefslogtreecommitdiff
path: root/TestMediaApp/assets/media_items/simple_leaves.json
blob: e666c1bb275e3cdde8da79278c962ad2acce246b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{
  "FLAGS": "browsable",

  "METADATA": {
    "MEDIA_ID": "simple_leaves",
    "DISPLAY_TITLE": "Simple leaves"
  },

  "CHILDREN": [
    {
      "FLAGS": "playable",
      "METADATA": {
        "MEDIA_ID": "simple_leaves normal 10s song",
        "DISPLAY_TITLE": "A normal 10s song",
        "DURATION": 10000
      }
    },
    {
      "FLAGS": "playable",
      "METADATA": {
        "MEDIA_ID": "simple_leaves normal 1H song",
        "DISPLAY_TITLE": "A normal 1H song",
        "DURATION": 3600000
      }
    },
    {
      "FLAGS": "playable",
      "METADATA": {
        "MEDIA_ID": "simple_leaves slow connection",
        "DISPLAY_TITLE": "Connects and buffers for 4s each",
        "DURATION": 30000
      },
      "EVENTS": [
        { "STATE": "CONNECTING", "POST_DELAY_MS": 50 },
        { "STATE": "BUFFERING", "POST_DELAY_MS": 4000 },
        { "STATE": "PLAYING", "POST_DELAY_MS": 4000 }
      ]
    },
    {
      "FLAGS": "playable",
      "METADATA": {
        "MEDIA_ID": "simple_leaves poor internet",
        "DISPLAY_TITLE": "Poor internet quality at 2s",
        "DURATION": 30000
      },
      "EVENTS": [
        { "STATE": "PLAYING", "POST_DELAY_MS": 0 },
        {
          "STATE": "PLAYING",
          "ERROR_CODE": "APP_ERROR",
          "ERROR_MESSAGE": "Bad connection, sorry for the low quality",
          "POST_DELAY_MS": 2000
        }
      ]
    },
    {
      "FLAGS": "playable",
      "METADATA": {
        "MEDIA_ID": "simple_leaves cache failure",
        "DISPLAY_TITLE": "Caching failure at 2s",
        "DURATION": 30000
      },
      "EVENTS": [
        { "STATE": "PLAYING", "POST_DELAY_MS": 0 },
        {
          "STATE": "PAUSED",
          "ERROR_CODE": "APP_ERROR",
          "ERROR_MESSAGE": "End of cache reached. Please check your data connection.",
          "POST_DELAY_MS": 2000
        }
      ]
    },
    {
      "FLAGS": "playable",
      "METADATA": {
        "MEDIA_ID": "simple_leaves error code",
        "DISPLAY_TITLE": "Parental Control error code at 1s",
        "DURATION": 10000
      },
      "EVENTS": [
        { "STATE": "PLAYING", "POST_DELAY_MS": 0 },
        {
          "STATE": "ERROR",
          "ERROR_CODE": "PARENTAL_CONTROL_RESTRICTED",
          "POST_DELAY_MS": 1000
        }
      ]
    },
    {
      "FLAGS": "playable",
      "METADATA": {
        "MEDIA_ID": "simple_leaves premium required",
        "DISPLAY_TITLE": "Paid account required at 1s",
        "DURATION": 50000
      },
      "EVENTS": [
        { "STATE": "PLAYING", "POST_DELAY_MS": 0 },
        {
          "STATE": "ERROR",
          "ERROR_CODE": "PREMIUM_ACCOUNT_REQUIRED",
          "ERROR_MESSAGE": "A premium account is needed to play this track completely...",
          "ACTION_LABEL": "Upgrade now",
          "INTENT": "PREFS",
          "POST_DELAY_MS": 1000
        }
      ]
    },
    {
      "FLAGS": "playable",
      "METADATA": {
        "MEDIA_ID": "simple_leaves bluetooth disconnected and reconnected",
        "DISPLAY_TITLE": "Bluetooth disconnected at 2s and reconnected at 8s",
        "DURATION": 20000
      },
      "EVENTS": [
        { "STATE": "PLAYING", "POST_DELAY_MS": 0 },
        {
          "STATE": "ERROR",
          "ERROR_MESSAGE": "Bluetooth audio disconnected.",
          "POST_DELAY_MS": 2000
        },
        {
          "ACTION": "RESET_METADATA",
          "POST_DELAY_MS": 6000
        },
        {
          "STATE": "PLAYING",
          "POST_DELAY_MS": 3000
        }
      ]
    }
  ]
}