-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
556 lines (555 loc) · 17 KB
/
index.js
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
import Video from './src/Video';
export default Video;
export const videoMock = {
comments: [
{
id: 137416,
comment:
'It’s interesting that his drums are faced away from him.? Why is that??',
content_id: 263378,
parent_id: null,
user_id: 367448,
display_name: '',
created_on: '2020-07-26 18:28:41',
deleted_at: null,
replies: [
{
id: 137499,
content_id: 263378,
comment:
"Daru has a whole thing about being different- this totally works for him as he love the asthetic of the kit, and though the playability looks weird, he makes it work. PArt of the idea is, if it's a challenge to play something, you'd better mean it!",
parent_id: 137416,
user_id: 154138,
display_name: '',
created_on: '2020-07-27 16:52:32',
deleted_at: null,
like_count: 0,
like_users: [],
is_liked: false,
user: {
display_name: 'K-RAD',
xp: 0,
xp_level: 'Enthusiast I',
access_level: 'team',
'fields.profile_picture_image_url':
'https://dzryyo1we6bm3.cloudfront.net/avatars/154138_1581108109625.jpg',
level_number: '1.0',
isAdmin: true
}
}
],
like_count: 1,
like_users: [
{
id: 154138,
display_name: 'K-RAD',
avatar_url:
'https://dzryyo1we6bm3.cloudfront.net/avatars/154138_1581108109625.jpg',
xp: 0
}
],
is_liked: false,
user: {
id: 367448,
display_name: 'thecimofamily',
'fields.profile_picture_image_url':
'https://dzryyo1we6bm3.cloudfront.net/avatars/IMG_0082.jpg',
xp: 0,
xp_level: 'Enthusiast I',
access_level: 'lifetime',
level_number: '1.0',
isAdmin: false
}
}
],
id: 263378,
xp: 200,
refreshing: false,
showInfo: false,
type: 'COURSE-PART',
style: '',
title: 'Introduction',
xpBonus: '200',
artist: '',
videoId: '440749961',
likeCount: 8,
captions: '',
progress: 0,
resources: null,
instructor: '',
difficulty: 'ADVANCED all',
releaseDate: 'JUL 25, 2020',
parentTitle: '',
lengthInSec: '109',
instructors: [
{
id: 220967,
name: 'Daru Jones',
biography:
'Daru Jones is a Grammy-award winner with an impressive level of experience performing and recording, and producing at the highest level through his own label: Rusic Records. He has worked with incredible artists and producers, such as Jack White, Slum Village, Talib Kweli, Black Milk, Dwight Yoakam, Jamie Lidell, Pete Rock, Salaam Remi, Gloria Gaynor, Kim Burrell, Q-Tip, Mos Def, and Lorenzo Jovanotti, just to name a few. This level of exposure has led him to play on coveted stages, including One Mic: Hip-Hop Culture Worldwide, the 2013 Grammy Awards, Austin City Limits, Rock The Bells Festival, Montreux Jazz Festival, The David Letterman Show, Jools Holland, The Colbert Report, Saturday Night Live, and MTV. ',
headShotPic:
'https://d1923uyy6spedc.cloudfront.net/220967-avatar-1572358845.jpg'
}
],
description:
'Daru explains his approach to playing drums, and how his style is identifiably unique. Soul Hop is his way of combining two of his biggest influences: soul music and hip-hop.',
assignments: [],
mp3s: [],
thumbnailUrl:
'https://d1923uyy6spedc.cloudfront.net/263378-card-thumbnail-1595685275.png',
nextLessonId: 263379,
isYoutube: false,
relatedLessons: [
{
id: 263379,
type: 'course-part',
completed: false,
published_on: '2020-07-25 15:00:00',
instructor: '',
progress_percent: 0,
is_added_to_primary_playlist: false,
style: '',
title: 'Jack White - "Lazaretto"',
artist: '',
thumbnailUrl:
'https://d1923uyy6spedc.cloudfront.net/263379-card-thumbnail-1595685452.png',
lengthInSec: '201'
},
{
id: 263380,
type: 'course-part',
completed: false,
published_on: '2020-07-25 15:00:00',
instructor: '',
progress_percent: 0,
is_added_to_primary_playlist: false,
style: '',
title: 'The Ruff Pack - "With You"',
artist: '',
thumbnailUrl:
'https://d1923uyy6spedc.cloudfront.net/263380-card-thumbnail-1595685571.png',
lengthInSec: '179'
},
{
id: 263381,
type: 'course-part',
completed: false,
published_on: '2020-07-25 15:00:00',
instructor: '',
progress_percent: 0,
is_added_to_primary_playlist: false,
style: '',
title: 'Black Milk - "Keep Going"',
artist: '',
thumbnailUrl:
'https://d1923uyy6spedc.cloudfront.net/263381-card-thumbnail-1595685676.png',
lengthInSec: '443'
},
{
id: 263382,
type: 'course-part',
completed: false,
published_on: '2020-07-25 15:00:00',
instructor: '',
progress_percent: 0,
is_added_to_primary_playlist: false,
style: '',
title: 'Slum Village - "Just Like A Test"',
artist: '',
thumbnailUrl:
'https://d1923uyy6spedc.cloudfront.net/263382-card-thumbnail-1595685733.png',
lengthInSec: '241'
},
{
id: 263383,
type: 'course-part',
completed: false,
published_on: '2020-07-25 15:00:00',
instructor: '',
progress_percent: 0,
is_added_to_primary_playlist: false,
style: '',
title: 'Jamie Lidell - "Walk Right Back"',
artist: '',
thumbnailUrl:
'https://d1923uyy6spedc.cloudfront.net/263383-card-thumbnail-1595685793.png',
lengthInSec: '614'
}
],
isAdded: false,
incompleteLessonId: 263379,
video_playback_endpoints: [
{
file:
'https://player.vimeo.com/external/440749961.sd.mp4?s=4ac4f77c50cb5f9994a544ffc75a93146c12b4c6&profile_id=139&oauth2_token_id=1284792283',
width: 426,
height: 240
},
{
file:
'https://player.vimeo.com/external/440749961.sd.mp4?s=4ac4f77c50cb5f9994a544ffc75a93146c12b4c6&profile_id=164&oauth2_token_id=1284792283',
width: 640,
height: 360
},
{
file:
'https://player.vimeo.com/external/440749961.sd.mp4?s=4ac4f77c50cb5f9994a544ffc75a93146c12b4c6&profile_id=165&oauth2_token_id=1284792283',
width: 960,
height: 540
},
{
file:
'https://player.vimeo.com/external/440749961.hd.mp4?s=0bd3c88f773d4e2b10e74a34cbd52500f47fb678&profile_id=174&oauth2_token_id=1284792283',
width: 1280,
height: 720
},
{
file:
'https://player.vimeo.com/external/440749961.hd.mp4?s=0bd3c88f773d4e2b10e74a34cbd52500f47fb678&profile_id=175&oauth2_token_id=1284792283',
width: 1920,
height: 1080
},
{
file:
'https://player.vimeo.com/external/440749961.hd.mp4?s=0bd3c88f773d4e2b10e74a34cbd52500f47fb678&profile_id=170&oauth2_token_id=1284792283',
width: 2560,
height: 1440
},
{
file:
'https://player.vimeo.com/external/440749961.hd.mp4?s=0bd3c88f773d4e2b10e74a34cbd52500f47fb678&profile_id=172&oauth2_token_id=1284792283',
width: 3840,
height: 2160
}
],
lastWatchedPosInSec: 0
};
export const mp3VideoMock = {
comments: [
{
id: 113302,
comment: 'What a cool track and soulful chill vibe!! ',
content_id: 245323,
parent_id: null,
user_id: 149869,
display_name: '',
created_on: '2020-02-28 19:35:44',
deleted_at: null,
replies: [],
like_count: 0,
like_users: [],
is_liked: false,
user: {
id: 149869,
display_name: 'Aaron L - Linkmaster',
'fields.profile_picture_image_url':
'https://dzryyo1we6bm3.cloudfront.net/avatars/149869_1584644846065.jpg',
xp: 0,
xp_level: 'Enthusiast I',
access_level: 'lifetime',
level_number: '1.0',
isAdmin: false
}
}
],
id: 245323,
xp: 175,
refreshing: false,
showInfo: false,
type: 'PLAY-ALONG',
style: 'Electronic',
title: 'Funk You Not',
xpBonus: 150,
artist: 'Daru Jones',
videoId: '393716651',
likeCount: 7,
captions: '',
progress: 0,
resources: [
{
resource_id: 123395,
resource_name: 'MP3 Without Click',
resource_url:
'https://s3.amazonaws.com/drumeo/play-along-resources/funk-you-not/funk-you-not-drums-false-click-false.mp3'
},
{
resource_id: 123400,
resource_name: 'PDF Chart',
resource_url:
'https://d1923uyy6spedc.cloudfront.net/245323-resource-1582899677.pdf'
}
],
instructor: 'Daru Jones',
difficulty: 'BEGINNER 4',
releaseDate: 'FEB 28, 2020',
parentTitle: '',
lengthInSec: '331',
instructors: [
{
id: 220967,
name: 'Daru Jones',
biography:
'Daru Jones is a Grammy-award winner with an impressive level of experience performing and recording, and producing at the highest level through his own label: Rusic Records. He has worked with incredible artists and producers, such as Jack White, Slum Village, Talib Kweli, Black Milk, Dwight Yoakam, Jamie Lidell, Pete Rock, Salaam Remi, Gloria Gaynor, Kim Burrell, Q-Tip, Mos Def, and Lorenzo Jovanotti, just to name a few. This level of exposure has led him to play on coveted stages, including One Mic: Hip-Hop Culture Worldwide, the 2013 Grammy Awards, Austin City Limits, Rock The Bells Festival, Montreux Jazz Festival, The David Letterman Show, Jools Holland, The Colbert Report, Saturday Night Live, and MTV. ',
headShotPic:
'https://d1923uyy6spedc.cloudfront.net/220967-avatar-1572358845.jpg'
}
],
description: '',
assignments: [
{
id: 246968,
xp: 25,
index: 0,
progress: 0,
title: '"Funk You Not" Chart',
description: '',
soundsliceSlug: '',
sheets: [
{
value:
'https://d1923uyy6spedc.cloudfront.net/246968-sheet-image-1582899718.svg',
id: 123402,
whRatio: 1.0132450331125828
}
],
timeCodes: []
}
],
mp3s: [
{
id: 123394,
content_id: 245323,
key: 'mp3_no_drums_no_click_url',
value:
'https://s3.amazonaws.com/drumeo/play-along-resources/funk-you-not/funk-you-not-drums-false-click-false.mp3',
position: 1
},
{
id: 123397,
content_id: 245323,
key: 'mp3_no_drums_yes_click_url',
value:
'https://s3.amazonaws.com/drumeo/play-along-resources/funk-you-not/funk-you-not-drums-false-click-true.mp3',
position: 1
},
{
id: 123398,
content_id: 245323,
key: 'mp3_yes_drums_no_click_url',
value:
'https://s3.amazonaws.com/drumeo/play-along-resources/funk-you-not/funk-you-not-drums-true-click-false.mp3',
position: 1
},
{
id: 123399,
content_id: 245323,
key: 'mp3_yes_drums_yes_click_url',
value:
'https://s3.amazonaws.com/drumeo/play-along-resources/funk-you-not/funk-you-not-drums-true-click-true.mp3',
position: 1
}
],
thumbnailUrl:
'https://dzryyo1we6bm3.cloudfront.net/thumbnails/22911_thumbnail_360p.jpg',
nextLessonId: 243773,
isYoutube: false,
soundsliceSlug: '',
relatedLessons: [
{
id: 261676,
type: 'play-along',
completed: false,
published_on: '2020-07-18 15:00:00',
instructor: 'Daru Jones',
progress_percent: 0,
is_added_to_primary_playlist: false,
style: 'Funk',
title: 'Xeno Bounce',
artist: '',
thumbnailUrl:
'https://d1923uyy6spedc.cloudfront.net/261676-card-thumbnail-1594994038.png',
lengthInSec: '199'
},
{
id: 262303,
type: 'play-along',
completed: false,
published_on: '2020-07-10 15:00:00',
instructor: 'Daru Jones',
progress_percent: 0,
is_added_to_primary_playlist: false,
style: '',
title: 'Seven Gateways Of Time',
artist: '',
thumbnailUrl: '',
lengthInSec: '238'
},
{
id: 260251,
type: 'play-along',
completed: false,
published_on: '2020-06-19 15:00:00',
instructor: 'Daru Jones',
progress_percent: 0,
is_added_to_primary_playlist: false,
style: 'jazz',
title: 'Nutville',
artist: 'Buddy Rich Big Band',
thumbnailUrl:
'https://d1923uyy6spedc.cloudfront.net/260251-card-thumbnail-1593035689.png',
lengthInSec: '173'
},
{
id: 254192,
type: 'play-along',
completed: false,
published_on: '2020-05-29 15:00:00',
instructor: 'Daru Jones',
progress_percent: 0,
is_added_to_primary_playlist: false,
style: 'Funk',
title: 'Black Cow',
artist: 'Steely Dan',
thumbnailUrl:
'https://d1923uyy6spedc.cloudfront.net/254192-card-thumbnail-1593035708.png',
lengthInSec: '294'
},
{
id: 254179,
type: 'play-along',
completed: false,
published_on: '2020-05-22 15:00:00',
instructor: 'Daru Jones',
progress_percent: 0,
is_added_to_primary_playlist: false,
style: 'Alternative',
title: 'Speak To Me',
artist: 'Rashid Williams',
thumbnailUrl:
'https://d1923uyy6spedc.cloudfront.net/254179-card-thumbnail-1593035722.png',
lengthInSec: '249'
},
{
id: 254163,
type: 'play-along',
completed: false,
published_on: '2020-05-15 15:00:00',
instructor: 'Daru Jones',
progress_percent: 0,
is_added_to_primary_playlist: false,
style: 'Vocals',
title: 'Blue Jacket',
artist: 'Mathieu Fiset & The RoboJazz Band',
thumbnailUrl:
'https://d1923uyy6spedc.cloudfront.net/254163-card-thumbnail-1593035733.png',
lengthInSec: '247'
},
{
id: 253432,
type: 'play-along',
completed: false,
published_on: '2020-05-08 15:00:00',
instructor: 'Daru Jones',
progress_percent: 0,
is_added_to_primary_playlist: false,
style: 'Funk',
title: 'Get The Groove Right',
artist: 'Mathieu Fiset & The RoboJazz Band',
thumbnailUrl:
'https://d1923uyy6spedc.cloudfront.net/253432-card-thumbnail-1593035744.png',
lengthInSec: '203'
},
{
id: 248523,
type: 'play-along',
completed: false,
published_on: '2020-04-17 15:00:00',
instructor: 'Daru Jones',
progress_percent: 0,
is_added_to_primary_playlist: false,
style: 'Latin',
title: 'Cha Cha 2',
artist: 'Jody Fisher, Baba Elefante, Tilden Webb & Mike Michalkow',
thumbnailUrl:
'https://dzryyo1we6bm3.cloudfront.net/thumbnails/30368_thumbnail_360p.jpg',
lengthInSec: '131'
},
{
id: 247399,
type: 'play-along',
completed: false,
published_on: '2020-03-27 17:00:00',
instructor: 'Daru Jones',
progress_percent: 0,
is_added_to_primary_playlist: false,
style: 'Electronic',
title: 'Futuristic Solitude',
artist: 'Tim Proznick',
thumbnailUrl:
'https://dzryyo1we6bm3.cloudfront.net/thumbnails/22911_thumbnail_360p.jpg',
lengthInSec: '215'
},
{
id: 246167,
type: 'play-along',
completed: false,
published_on: '2020-03-07 16:00:00',
instructor: 'Daru Jones',
progress_percent: 0,
is_added_to_primary_playlist: false,
style: 'Electronic',
title: 'The Odd Life',
artist: 'Tim Proznick',
thumbnailUrl:
'https://dzryyo1we6bm3.cloudfront.net/thumbnails/22911_thumbnail_360p.jpg',
lengthInSec: '244'
}
],
isAdded: false,
previousLessonId: 246167,
video_playback_endpoints: [
{
file:
'https://player.vimeo.com/external/393716651.sd.mp4?s=50f8575126b9a70e084931f6f9a717b9125fc22b&profile_id=139&oauth2_token_id=1284792283',
width: 426,
height: 240
},
{
file:
'https://player.vimeo.com/external/393716651.sd.mp4?s=50f8575126b9a70e084931f6f9a717b9125fc22b&profile_id=164&oauth2_token_id=1284792283',
width: 640,
height: 360
},
{
file:
'https://player.vimeo.com/external/393716651.sd.mp4?s=50f8575126b9a70e084931f6f9a717b9125fc22b&profile_id=165&oauth2_token_id=1284792283',
width: 960,
height: 540
},
{
file:
'https://player.vimeo.com/external/393716651.hd.mp4?s=b4962b2c9c71d6e6bf22211195e6d94990eedb29&profile_id=174&oauth2_token_id=1284792283',
width: 1280,
height: 720
},
{
file:
'https://player.vimeo.com/external/393716651.hd.mp4?s=b4962b2c9c71d6e6bf22211195e6d94990eedb29&profile_id=175&oauth2_token_id=1284792283',
width: 1920,
height: 1080
},
{
file:
'https://player.vimeo.com/external/393716651.hd.mp4?s=b4962b2c9c71d6e6bf22211195e6d94990eedb29&profile_id=170&oauth2_token_id=1284792283',
width: 2560,
height: 1440
},
{
file:
'https://player.vimeo.com/external/393716651.hd.mp4?s=b4962b2c9c71d6e6bf22211195e6d94990eedb29&profile_id=172&oauth2_token_id=1284792283',
width: 3840,
height: 2160
}
],
lastWatchedPosInSec: 0
};