@applicaster/zapp-react-native-utils 14.0.0-alpha.7900711229 → 14.0.0-alpha.9567513212

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/actionsExecutor/ActionExecutorContext.tsx +83 -60
  2. package/appUtils/contextKeysManager/contextResolver.ts +1 -14
  3. package/arrayUtils/__tests__/isFilledArray.test.ts +1 -1
  4. package/arrayUtils/index.ts +2 -7
  5. package/configurationUtils/__tests__/configurationUtils.test.js +31 -0
  6. package/configurationUtils/index.ts +34 -63
  7. package/manifestUtils/{_internals/index.js → _internals.js} +25 -2
  8. package/manifestUtils/createConfig.js +1 -4
  9. package/manifestUtils/defaultManifestConfigurations/player.js +200 -1231
  10. package/manifestUtils/progressBar/__tests__/mobileProgressBar.test.js +30 -0
  11. package/package.json +2 -2
  12. package/playerUtils/__tests__/configurationUtils.test.ts +65 -1
  13. package/playerUtils/configurationGenerator.ts +2572 -0
  14. package/playerUtils/configurationUtils.ts +44 -0
  15. package/playerUtils/index.ts +51 -2
  16. package/playerUtils/useValidatePlayerConfig.tsx +19 -22
  17. package/reactHooks/cell-click/index.ts +1 -8
  18. package/reactHooks/feed/__tests__/useFeedLoader.test.tsx +0 -20
  19. package/reactHooks/feed/useBatchLoading.ts +2 -2
  20. package/reactHooks/feed/useFeedLoader.tsx +5 -12
  21. package/reactHooks/navigation/useRoute.ts +2 -7
  22. package/utils/index.ts +1 -12
  23. package/actionsExecutor/ScreenActions.ts +0 -163
  24. package/actionsExecutor/StorageActions.ts +0 -110
  25. package/actionsExecutor/feedDecorator.ts +0 -171
  26. package/actionsExecutor/screenResolver.ts +0 -11
  27. package/arrayUtils/__tests__/isEmptyArray.test.ts +0 -63
  28. package/audioPlayerUtils/__tests__/getArtworkImage.test.ts +0 -144
  29. package/audioPlayerUtils/__tests__/getBackgroundImage.test.ts +0 -72
  30. package/audioPlayerUtils/__tests__/getImageFromEntry.test.ts +0 -110
  31. package/audioPlayerUtils/assets/index.ts +0 -2
  32. package/audioPlayerUtils/index.ts +0 -242
  33. package/conf/player/__tests__/selectors.test.ts +0 -34
  34. package/conf/player/selectors.ts +0 -10
  35. package/configurationUtils/__tests__/getMediaItems.test.ts +0 -65
  36. package/configurationUtils/__tests__/imageSrcFromMediaItem.test.ts +0 -34
  37. package/manifestUtils/_internals/getDefaultConfiguration.js +0 -28
  38. package/playerUtils/__tests__/getPlayerActionButtons.test.ts +0 -54
  39. package/playerUtils/_internals/__tests__/utils.test.ts +0 -71
  40. package/playerUtils/_internals/index.ts +0 -1
  41. package/playerUtils/_internals/utils.ts +0 -31
  42. package/playerUtils/getPlayerActionButtons.ts +0 -17
  43. package/reactHooks/navigation/useScreenStateStore.ts +0 -11
  44. package/storage/ScreenSingleValueProvider.ts +0 -197
  45. package/storage/ScreenStateMultiSelectProvider.ts +0 -282
  46. package/storage/StorageMultiSelectProvider.ts +0 -192
  47. package/storage/StorageSingleSelectProvider.ts +0 -108
@@ -4,11 +4,9 @@ const {
4
4
  remapConditionalFieldsForPluginGallery,
5
5
  } = require("../utils");
6
6
 
7
- const R = require("ramda");
8
- const compact = R.reject(R.isNil);
9
-
10
7
  function getDevice(platform) {
11
8
  switch (platform) {
9
+ case "ios":
12
10
  case "ios_for_quickbrick":
13
11
  case "android":
14
12
  case "android_for_quickbrick":
@@ -19,110 +17,52 @@ function getDevice(platform) {
19
17
  case "android_tv_for_quickbrick":
20
18
  case "lg_tv":
21
19
  case "samsung_tv":
22
- case "vizio":
23
20
  case "web":
21
+ case "vizio":
24
22
  return "tv";
25
23
  }
26
24
  }
27
25
 
28
- const isMobile = (platform) => getDevice(platform) === "mobile";
29
- const isTV = (platform) => getDevice(platform) === "tv";
30
-
31
- const mobileOnly = (platform, config) => (isMobile(platform) ? config : null);
32
-
33
- function getPlayerConfiguration({ platform, version }) {
34
- const audioTracksSettings =
35
- platform.includes("android") || platform.includes("amazon")
36
- ? [
37
- {
38
- type: "switch",
39
- label: "Use audio tracks based on the app language",
40
- tooltip:
41
- "If enabled, the default audio tracks for videos would be set according to the chosen app language and user's system language",
42
- key: "enable_auto_audio_track_selection",
43
- initial_value: false,
44
- },
45
- {
46
- type: "switch",
47
- label: "Collapse adaptive audio tracks",
48
- tooltip:
49
- "If enabled, will display only adaptive tracks group name, otherwise will display all audio tracks of all bitrates",
50
- key: "enable_adaptive_audio_track_selection",
51
- initial_value: false,
52
- },
53
- ]
54
- : [
55
- {
56
- type: "switch",
57
- label: "Use audio tracks based on the app language",
58
- tooltip:
59
- "If enabled, the default audio tracks for videos would be set according to the chosen app language and user's system language",
60
- key: "enable_auto_audio_track_selection",
61
- initial_value: false,
62
- },
63
- ];
64
-
65
- const audioPlayer = [
66
- {
67
- key: "audio_player_rtl",
68
- label: "Audio player layout right to left",
69
- initial_value: false,
70
- type: "switch",
71
- label_tooltip:
72
- "Disable if you don't want the content to have a right orientation",
73
- },
74
- ];
75
-
26
+ function getPlayerConfiguration({ platform }) {
76
27
  const general = {
77
- fields: [],
78
- };
79
-
80
- const styles = {
81
28
  fields: [
82
29
  {
83
- type: "color_picker_rgba",
84
- label: "Screen background color",
85
- key: "screen_background_color",
30
+ key: "audio_player_rtl",
31
+ label: "Audio player layout right to left",
32
+ initial_value: true,
33
+ type: "switch",
86
34
  label_tooltip:
87
- "This will override the background color set in the theme",
88
- initial_value: null,
35
+ "Disable if you don't want the content to have a right orientation",
89
36
  },
90
- ],
91
- };
92
-
93
- const localizations = {
94
- fields: [
95
37
  {
96
- type: "text_input",
97
- label: "Playback Speed Modal Title",
98
- key: "playback_speed_title",
99
- initial_value: "Playback Speed Modal Title",
100
- },
101
- {
102
- type: "text_input",
103
- label: "Sleep Timer Modal Title",
104
- key: "playback_sleep_title",
105
- initial_value: "Sleep Timer Modal Title",
106
- },
107
- {
108
- type: "text_input",
109
- label: "Sleep timer countdown label",
110
- key: "playback_sleep_countdown_label",
111
- initial_value: "Sleep Timer",
38
+ key: "magic_background",
39
+ label: "Enable Magic Background",
40
+ initial_value: false,
41
+ type: "switch",
42
+ label_tooltip:
43
+ "Enable if you want to have adaptive background gradient based on audio background image.",
112
44
  },
113
45
  {
46
+ key: "audio_player_background_image_default_color",
47
+ label: "Audio Player Background Image Default Color",
48
+ initial_value: "",
114
49
  type: "text_input",
115
- label: "Sleep timer off label",
116
- key: "playback_sleep_off_label",
117
- initial_value: "Sleep timer off",
50
+ label_tooltip:
51
+ "Set the default color for the audio player background image if not image or set of gradient colors are not provided.",
118
52
  },
53
+ ],
54
+ };
119
55
 
120
- {
121
- type: "text_input",
122
- label: "Skip intro button",
123
- key: "skip_button_localization_text_skip_intro",
124
- initial_value: "Skip Intro",
125
- },
56
+ const styles = {
57
+ fields: [],
58
+ };
59
+
60
+ const localizations = {
61
+ fields: [],
62
+ };
63
+
64
+ if (getDevice(platform) === "mobile") {
65
+ localizations.fields.push(
126
66
  {
127
67
  type: "text_input",
128
68
  label: "Locked message",
@@ -134,407 +74,14 @@ function getPlayerConfiguration({ platform, version }) {
134
74
  label: "Unlock message",
135
75
  key: "message_unlock",
136
76
  initial_value: "Tap again to unlock screen",
137
- },
138
- {
139
- key: "accessibility_play_label",
140
- label: "Accessibility play label",
141
- initial_value: "Play button",
142
- label_tooltip: "Label for play button accessibility",
143
- type: "text_input",
144
- },
145
- {
146
- key: "accessibility_play_hint",
147
- label: "Accessibility play hint",
148
- initial_value: "Press to play content",
149
- label_tooltip: "Hint for play button accessibility",
150
- type: "text_input",
151
- },
152
- {
153
- key: "accessibility_pause_label",
154
- label: "Accessibility pause label",
155
- initial_value: "Pause button",
156
- label_tooltip: "Label for pause button accessibility",
157
- type: "text_input",
158
- },
159
- {
160
- key: "accessibility_pause_hint",
161
- label: "Accessibility pause hint",
162
- initial_value: "Press to pause content",
163
- label_tooltip: "Hint for pause button accessibility",
164
- type: "text_input",
165
- },
166
- {
167
- key: "accessibility_down_label",
168
- label: "Accessibility down label",
169
- initial_value: "Minimize button",
170
- label_tooltip: "Label for minimize button accessibility",
171
- type: "text_input",
172
- },
173
- {
174
- key: "accessibility_down_hint",
175
- label: "Accessibility down hint",
176
- initial_value: "Press to minimize player",
177
- label_tooltip: "Hint for minimize button accessibility",
178
- type: "text_input",
179
- },
180
- {
181
- key: "accessibility_maximize_label",
182
- label: "Accessibility maximize label",
183
- initial_value: "Maximize button",
184
- label_tooltip: "Label for maximize button accessibility",
185
- type: "text_input",
186
- },
187
- {
188
- key: "accessibility_maximize_hint",
189
- label: "Accessibility maximize hint",
190
- initial_value: "Press to maximize player",
191
- label_tooltip: "Hint for maximize button accessibility",
192
- type: "text_input",
193
- },
194
- {
195
- key: "accessibility_close_label",
196
- label: "Accessibility close label",
197
- initial_value: "Close button",
198
- label_tooltip: "Label for close button accessibility",
199
- type: "text_input",
200
- },
201
- {
202
- key: "accessibility_close_hint",
203
- label: "Accessibility close hint",
204
- initial_value: "Press to close player",
205
- label_tooltip: "Hint for close button accessibility",
206
- type: "text_input",
207
- },
208
- {
209
- key: "accessibility_forward_label",
210
- label: "Accessibility forward label",
211
- initial_value: "Forward button",
212
- label_tooltip: "Label for forward button accessibility",
213
- type: "text_input",
214
- },
215
- {
216
- key: "accessibility_forward_hint",
217
- label: "Accessibility forward hint",
218
- initial_value: "Press to forward content",
219
- label_tooltip: "Hint for forward button accessibility",
220
- type: "text_input",
221
- },
222
- {
223
- key: "accessibility_rewind_label",
224
- label: "Accessibility rewind label",
225
- initial_value: "Rewind button",
226
- label_tooltip: "Label for rewind button accessibility",
227
- type: "text_input",
228
- },
229
- {
230
- key: "accessibility_rewind_hint",
231
- label: "Accessibility rewind hint",
232
- initial_value: "Press to rewind content",
233
- label_tooltip: "Hint for rewind button accessibility",
234
- type: "text_input",
235
- },
236
- {
237
- key: "accessibility_close_mini_label",
238
- label: "Accessibility docked close button label",
239
- initial_value: "Close mini player",
240
- label_tooltip: "Label for docked close button accessibility",
241
- type: "text_input",
242
- },
243
- {
244
- key: "accessibility_close_mini_hint",
245
- label: "Accessibility docked close button hint",
246
- initial_value: "Press to close mini player",
247
- label_tooltip: "Hint for docked close button accessibility",
248
- type: "text_input",
249
- },
250
- {
251
- key: "accessibility_pause_mini_label",
252
- label: "Accessibility docked pause button label",
253
- initial_value: "Pause mini player",
254
- label_tooltip: "Label for docked pause button accessibility",
255
- type: "text_input",
256
- },
257
- {
258
- key: "accessibility_pause_mini_hint",
259
- label: "Accessibility docked pause button hint",
260
- initial_value: "Press to pause mini player",
261
- label_tooltip: "Hint for docked pause button accessibility",
262
- type: "text_input",
263
- },
264
- {
265
- key: "accessibility_play_mini_label",
266
- label: "Accessibility docked play button label",
267
- initial_value: "Play mini player",
268
- label_tooltip: "Label for docked play button accessibility",
269
- type: "text_input",
270
- },
271
- {
272
- key: "accessibility_play_mini_hint",
273
- label: "Accessibility docked play button hint",
274
- initial_value: "Press to play mini player",
275
- label_tooltip: "Hint for docked play button accessibility",
276
- type: "text_input",
277
- },
278
- {
279
- key: "accessibility_subtitle_label",
280
- label: "Accessibility subtitles label",
281
- initial_value: "Subtitles button",
282
- label_tooltip: "Label for subtitles button accessibility",
283
- type: "text_input",
284
- },
285
- {
286
- key: "accessibility_subtitle_hint",
287
- label: "Accessibility subtitles hint",
288
- initial_value: "Press to open subtitles menu",
289
- label_tooltip: "Hint for subtitles button accessibility",
290
- type: "text_input",
291
- },
292
- {
293
- key: "accessibility_back_label",
294
- label: "Accessibility back label",
295
- initial_value: "Back button",
296
- label_tooltip: "Label for back button accessibility",
297
- type: "text_input",
298
- },
299
- {
300
- key: "accessibility_back_hint",
301
- label: "Accessibility back hint",
302
- initial_value: "Press to go back",
303
- label_tooltip: "Hint for back button accessibility",
304
- type: "text_input",
305
- },
306
- {
307
- key: "accessibility_fullscreen_label",
308
- label: "Accessibility fullscreen label",
309
- initial_value: "Fullscreen button",
310
- label_tooltip: "Label for fullscreen button accessibility",
311
- type: "text_input",
312
- },
313
- {
314
- key: "accessibility_fullscreen_hint",
315
- label: "Accessibility fullscreen hint",
316
- initial_value: "Press to toggle fullscreen mode",
317
- label_tooltip: "Hint for fullscreen button accessibility",
318
- type: "text_input",
319
- },
320
- ],
321
- };
322
-
323
- if (isTV(platform)) {
324
- styles.fields.push(
325
- fieldsGroup("Always Show Scrub Bar & Timestamp", "", [
326
- {
327
- key: "always_show_scrub_bar_and_timestamp",
328
- label: "Always Show Scrub Bar & Timestamp",
329
- initial_value: false,
330
- type: "switch",
331
- label_tooltip:
332
- "When enabled, progress bar will always appear while playing in full screen. otherwise, progress bar will appear only when tapping and revealing all controllers",
333
- },
334
- {
335
- section: "Default Timestamp Type",
336
- key: "default_timestamp_type",
337
- label: "Default Timestamp Type",
338
- type: "select",
339
- initial_value: "remaining_time",
340
- label_tooltip:
341
- "When clicking on the timestamp - users will be able to switch between both modes. this configuration only set the default mode when entering the player.",
342
- options: [
343
- {
344
- text: "Remaining time",
345
- value: "remaining_time",
346
- },
347
- {
348
- text: "Complete Duration",
349
- value: "complete_duration",
350
- },
351
- ],
352
- },
353
- ]),
354
- fieldsGroup(
355
- "Skip Button",
356
- "This section allows you to configure the skip button styles for tv",
357
- [
358
- {
359
- type: "switch",
360
- key: "skip_button_enabled",
361
- label_tooltip: "Enables Skip button on the player.",
362
- label: "Enable",
363
- initial_value: true,
364
- },
365
- {
366
- type: "switch",
367
- key: "skip_button_persistent",
368
- label_tooltip:
369
- "Show skip button always if enabled, otherwise show only when the player controls are on the screen.",
370
- label: "Persistent Button Toggle",
371
- initial_value: true,
372
- },
373
- {
374
- type: "color_picker_rgba",
375
- label_tooltip: "",
376
- label: "Border Color",
377
- key: "skip_button_style_button_border_color",
378
- initial_value: "rgba(239, 239, 239, 0.5)",
379
- },
380
- {
381
- type: "color_picker_rgba",
382
- label_tooltip: "",
383
- label: "Border Color Focused",
384
- key: "skip_button_style_button_focused_border_color",
385
- initial_value: "rgba(239, 239, 239, 1)",
386
- },
387
- {
388
- type: "number_input",
389
- label_tooltip: "",
390
- label: "Border Width",
391
- key: "skip_button_style_button_border_width",
392
- initial_value: 1.5,
393
- },
394
- {
395
- type: "number_input",
396
- label_tooltip: "",
397
- label: "Corner Radius",
398
- key: "skip_button_style_button_border_radius",
399
- initial_value: 10,
400
- },
401
- {
402
- type: "color_picker_rgba",
403
- label_tooltip: "",
404
- label: "Background Color",
405
- key: "skip_button_style_button_background_color",
406
- initial_value: "rgba(0, 0, 0, 0.3)",
407
- },
408
- {
409
- type: "color_picker_rgba",
410
- label_tooltip: "",
411
- label: "Background Color Focused",
412
- key: "skip_button_style_button_focused_background_color",
413
- initial_value: "rgba(0, 0, 0, 0)",
414
- },
415
- {
416
- type: "color_picker_rgba",
417
- label_tooltip: "",
418
- label: "Font Color",
419
- key: "skip_button_style_text_color",
420
- initial_value: "rgba(255, 255, 255, 0.5)",
421
- },
422
- {
423
- type: "color_picker_rgba",
424
- label_tooltip: "",
425
- label: "Font Color Focused",
426
- key: "skip_button_style_text_focused_color",
427
- initial_value: "rgba(255, 255, 255, 1)",
428
- },
429
- {
430
- type: "lg_tv_font_selector",
431
- label_tooltip: "",
432
- label: "LG Font Family",
433
- key: "skip_button_style_text_lg_font_family",
434
- initial_value: "Ubuntu-Bold",
435
- },
436
- {
437
- type: "number_input",
438
- label_tooltip: "",
439
- label: "LG Font Size",
440
- key: "skip_button_style_text_lg_font_size",
441
- initial_value: 24,
442
- },
443
- {
444
- type: "samsung_font_selector",
445
- label_tooltip: "",
446
- label: "Samsung Font Family",
447
- key: "skip_button_style_text_samsung_font_family",
448
- initial_value: "Ubuntu-Bold",
449
- },
450
- {
451
- type: "number_input",
452
- label_tooltip: "",
453
- label: "Samsung Font Size",
454
- key: "skip_button_style_text_samsung_font_size",
455
- initial_value: 24,
456
- },
457
- {
458
- type: "vizio_font_selector",
459
- label_tooltip: "",
460
- label: "Samsung Font Family",
461
- key: "skip_button_style_text_vizio_font_family",
462
- initial_value: "Ubuntu-Bold",
463
- },
464
- {
465
- type: "number_input",
466
- label_tooltip: "",
467
- label: "Vizio Font Size",
468
- key: "skip_button_style_text_vizio_font_size",
469
- initial_value: 24,
470
- },
471
- {
472
- type: "android_font_selector",
473
- label_tooltip: "",
474
- label: "Android Font Family",
475
- key: "skip_button_style_text_android_font_family",
476
- initial_value: "Ubuntu-Bold",
477
- },
478
- {
479
- type: "number_input",
480
- label_tooltip: "",
481
- label: "Android Font Size",
482
- key: "skip_button_style_text_android_font_size",
483
- initial_value: 24,
484
- },
485
- {
486
- type: "select",
487
- options: [
488
- {
489
- text: "None",
490
- value: "none",
491
- },
492
- {
493
- text: "Uppercase",
494
- value: "uppercase",
495
- },
496
- {
497
- text: "Lowercase",
498
- value: "lowercase",
499
- },
500
- {
501
- text: "Capitalize",
502
- value: "capitalize",
503
- },
504
- ],
505
- label: "Text Transform",
506
- key: "skip_button_style_text_text_transform",
507
- initial_value: "none",
508
- },
509
- ]
510
- )
77
+ }
511
78
  );
512
- }
513
79
 
514
- if (isMobile(platform)) {
515
80
  general.fields.push(
516
- {
517
- section: "Default Timestamp Type",
518
- key: "default_timestamp_type",
519
- label: "Default Timestamp Type",
520
- type: "select",
521
- initial_value: "total_duration",
522
- label_tooltip:
523
- "When clicking on the timestamp - users will be able to switch between both modes. this configuration only set the default mode when entering the player.",
524
- options: [
525
- {
526
- text: "Remaining time",
527
- value: "remaining_time",
528
- },
529
- {
530
- text: "Total duration",
531
- value: "total_duration",
532
- },
533
- ],
534
- },
535
81
  {
536
82
  key: "seek_duration",
537
83
  label: "Seek duration",
84
+ // @ts-ignore wrong derived value
538
85
  initial_value: 10,
539
86
  type: "number_input",
540
87
  label_tooltip: "Duration of fast forward / rewind",
@@ -554,58 +101,31 @@ function getPlayerConfiguration({ platform, version }) {
554
101
  label_tooltip:
555
102
  "type here the identifiers of the action buttons you want to show on the player, separated by commas. Only 2 action buttons may be added at the same time",
556
103
  type: "text_input",
557
- },
558
- {
559
- key: "liveSeekingEnabled",
560
- label: "Live Seeking Enabled",
561
- initial_value: false,
562
- type: "switch",
563
- label_tooltip: "Enable Live Seek",
564
- },
565
- {
566
- key: "minimumAllowedSeekableDurationInSeconds",
567
- label: "Minimum allowed seekable duration in seconds",
568
- initial_value: 300,
569
- type: "number_input",
570
- label_tooltip:
571
- "If duration less that this value, player will disable 'liveSeekingEnabled' value",
572
- },
573
- {
104
+ }
105
+ );
106
+
107
+ if (platform.includes("ios")) {
108
+ general.fields.push({
574
109
  key: "pictureInPictureEnabled",
575
- label: "Picture in picture enabled",
110
+ label: "Picture and picture enabled",
576
111
  initial_value: false,
577
112
  type: "switch",
578
113
  label_tooltip:
579
- "Enable this option to have a floating video player when the app is in the background.",
580
- }
581
- );
114
+ "Enable this option to have a floating video player when the app is in the background (experimental)",
115
+ });
116
+ }
582
117
 
583
- if (
584
- platform.includes("android") ||
585
- platform.includes("amazon") ||
586
- platform.includes("ios") ||
587
- platform.includes("tvos")
588
- ) {
118
+ if (platform.includes("android") || platform.includes("amazon")) {
589
119
  general.fields.push({
590
120
  key: "user_agent",
591
121
  label: "User agent",
122
+ // @ts-ignore wrong derived value
592
123
  initial_value: "",
593
124
  type: "text_input",
594
125
  label_tooltip: "Override default user agent string",
595
126
  });
596
127
  }
597
128
 
598
- if (platform === "android_for_quickbrick") {
599
- general.fields.push({
600
- key: "stop_playback_on_task_removal",
601
- label: "Stop background playback on close",
602
- initial_value: false,
603
- type: "switch",
604
- label_tooltip:
605
- "Stop background playback if user swipes app away from 'Recent' screen",
606
- });
607
- }
608
-
609
129
  styles.fields.push(
610
130
  fieldsGroup(
611
131
  "Player Styles",
@@ -619,12 +139,6 @@ function getPlayerConfiguration({ platform, version }) {
619
139
  label_tooltip:
620
140
  "Select the background overlay color for the player. The alpha channel is ignored, and a gradient is created from the provided RGB colors",
621
141
  },
622
- {
623
- type: "text_input",
624
- label: "Background image key",
625
- key: "player_preview_image_key",
626
- initial_value: "",
627
- },
628
142
  {
629
143
  key: "use_video_modal",
630
144
  label: "Use video modal",
@@ -678,21 +192,6 @@ function getPlayerConfiguration({ platform, version }) {
678
192
  },
679
193
  ],
680
194
  },
681
- {
682
- type: "switch",
683
- label: "Disable Mini Player (in Inline Mode Video Modal)",
684
- label_tooltip:
685
- "Select whether you want to disable the mini player in the video player when in inline mode",
686
- key: "disable_mini_player_when_inline",
687
- initial_value: false,
688
- rules: "conditional",
689
- conditional_fields: [
690
- {
691
- key: "styles/use_video_modal",
692
- condition_value: true,
693
- },
694
- ],
695
- },
696
195
  {
697
196
  type: "switch",
698
197
  label: "Display live badge",
@@ -1022,67 +521,6 @@ function getPlayerConfiguration({ platform, version }) {
1022
521
  },
1023
522
  ],
1024
523
  },
1025
- {
1026
- key: "android_pip_action_icons",
1027
- type: "uploader",
1028
- label: "Android PiP Action items",
1029
- label_tooltip:
1030
- "Upload Assets Folder Zip File, expected format: pip_play, pip_pause, pip_seek_forward, pip_seek_backward",
1031
- },
1032
- {
1033
- key: "speed_0_8",
1034
- label: "Playback Speed 0.8x",
1035
- type: "uploader",
1036
- label_tooltip: "Playback Speed 0.8x",
1037
- initial_value:
1038
- "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAeMSURBVHgB7Z3/Vds6FMcvnPc/yQRVJyhM8MIEhQkaJihM8MIEwAQNE0AnwJ2g6QR1J4Au0D5dfHNqUuvqShbUcb+fc3R8Elm2oq9+3msrRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMjx0qyP39/cQfZj44H175wJ8ffPjuw4rDdDqtaSAE8st8oya/tc/viraYIgL7gpr5w3/UFFaMyodrX3BL+gOIqHMf3pItvzU1eT4fUuW00ktgX1jOHz6QraA2qX04fMlCk4rI+XWUx8Ln95y2iGyBpbBu6Fe3lgN33ye+0G7pmfH55R5mQf3hLvt4W1pzlsC+sPb94TOVg1tyRc9EQXHX1D4c+Dw/0MDZpUSkW76hstzIdYvjrzunuLgsVOXDUo515HxHzZxj8CQL7LkgfQyrf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- key: "speed_1",
1042
- label: "Playback Speed 1x",
1043
- type: "uploader",
1044
- label_tooltip: "Playback Speed 1x",
1045
- initial_value:
1046
- "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAI4SURBVHgB7dzhcRJBGIDhT8cCkg6SDmIHsQNLiBUYKwAqUCtIC5ZACVqBdIAdxN3JMSLecXcE8Tt5npkdJlxyf97ZcLcLRAAAAAAAAAAAAAAAAAAAAAAAAADAMb2IiViv17fl4aGMq45fub68vFwFv3kVyZWwF+VhVsZ9MFrqwANmLT1SBm5mbQ37NniWl5FMifu+PHwPcY8izQwuYa/iadbeBkeTaQbfxf64P8r4GoyS7l90h89lXJfxLRgl+23Sqox35f52WX8o/8aDcTLP4EUZrzdxOUzGGbws40MJ6/X2CDIFrhdRNeyn4GjSBBb275jKVTQHEvg/d/aB69Lo+sljGR/jADvnmEUiZx242a2qr/0XzVP35bmHkeeY7Zxj3pw3hXOfwTctz90NjdzEnbccuo0kzj1w1712b+Q9cfed9+TOOnCzSrboONwZuSfuopz3SyRx9hdZJcY8RkQeELfr2D/hNimGR55a3Cr9m+5OpcZpdqvabnNq5HpBdtPx5ynjVmbwlp6ZPLm4lcA7eiLvSh23ErjFwMjp41YCd3t85vEUBG7Rc7W8Mc+27txG4B0D426kjyzwlp64y47nU0cWuDFgEeNNdF94pY0scAxfoeq5uk4Z2Yb/yOXHqUW24X/A2vKAyGk+OGfDv13vIsaBy5onZ8P/T4NXqPZEtuGfwdaG/yp+vfF+HiNsRV5tnSPNhv9kvoSlaj75f9F2zBewAAAAAAAAAAAAAAAAAAAAAAAAwHT8BNhH51wNSx95AAAAAElFTkSuQmCC",
1047
- },
1048
- {
1049
- key: "speed_1_2",
1050
- label: "Playback Speed 1.2x",
1051
- type: "uploader",
1052
- label_tooltip: "Playback Speed 1.2x",
1053
- initial_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Y0wOwCdgj3duhCdQ157HDFrAJ2DHdNATiELCcmrjX1QcIVswl4ynBblpB1540FC1fMImB1nFsZ3hI83JYl5LeChiuyD1jt70yt4dHCbTmGHDxckXXAKtzS8JbRw23xYMXW8hZbfb+/S5mKKVxLa7nl3a3pItiVDaGpoTs5NVf6YeW8qjuP300t3FbwKymiDLgrIJ4m3XXWfuGEwpX/p6slHTTk6AJWIzJlR5UsDDnR/tTwu7ZwGy6Vuo6qF9dTg1w6MR4eHireN3cNBwYLOcY1+MxQt5Khs661WF0/VJJZQbtrqPpquLyzvcm1h0pa1xwyjRlyjI0s29jnief0Sfl2P/r2XfuKMWDbeczRnvimdi9rTbX2ONch5N5f3hgDrgx1N8u4r/BbaaZbOzEsIRfUU3QBq0aMXEvUvKmS1m/s1+nWHdOce6gMIffeao3dyJJj10ZTp5v+beCcN0s17farsk9uHFqvFenPqAjFuPVQ813wjx/UJO+TBiRk/gz5Oxfq7w0a8AcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANif7B8Q/dOlJHI7iEJNvlcl+8tCsg5Y3R/Ldm1QuUz46aI2ud9lx+XCr1HubhOLLNdgh6eQdjn3uZNPKnIN+DP5XzQtl6ha77+Rmuw20eoOOgX5K4bcfSdWOe6Dh9yMJYobuYSUY8BDnj2Y1XMLRY4BD7lJS3LPJrTJMeAht1lK7tmENmhF/4BWdEI25C/L3qwsA1YdFj6BXcX0LOSQcu+LLvnF1g258b2XVUrmMppUcvmdfhznNlz+43Kd+2jSV0z9PFgMpokeAAAAAElFTkSuQmCC",
1055
- },
1056
- {
1057
- key: "speed_1_5",
1058
- label: "Playback Speed 1.5x",
1059
- type: "uploader",
1060
- label_tooltip: "Playback Speed 1.5x",
1061
- initial_value:
1062
- "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVySURBVHgB7Z2NVe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XeHq8QshVY+m7FaaCh9jjE5O0Ry9erBKuF/GBKd3i6THn6iLsmuchZCqxfUm70hYYHj16VW0vaF5fIKq70GVeGXbrQkaIOcU21QVKRsxNYb8pqIKmxieRwUAgi8s12bSBVsp5TnuG15XhfS3idr01cMaiOKcDjFUt2vmgZSUH2UnRE5vNJ21LO6dNWXVvWPvtehzgePMRdbewr+wX5rkPIsYquItPkRyPV3jn54bsSgOTZkCch4gqhvutQchS4s6Q5rVgdLCddhqFt3yHEqPro245WC7wx5WVq53qIvKJIchT4OjLtDb5h0hd8fHBwcE9xiKDSNbgKdJLUhninEyPSrekkO4G1v3Xoi56HDGUVj9NisZCSLKM4pCT6CNXquY+WcTM1uoE4bw+VReRoB8vURlZNhuemSyyt7uSXK8/J+wh341CeH/R6NkuE5NtxaBOd44T6UZxy3VFdfmp4fdY8cpkWBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEEiW60WmRKfAyBvaZEpJpdGPGi5Le0fDNkULrG9Edc3rkZeLBM3enxPFLoS2sbC2i2bsquo5U2QJ1gnToTPjP+m84qIoVWDbOh8mrOt/zJXiqmjbnGQHled6XLOixGdw9HIHI4/NkhIF9l7uN/GxWVKiwGOWYUixMk9WlCjwmBVhxxybJbCifwArekb4rna3SZHerCIFVodFiGCXy0JeJ7tN6b7ohtyvpDsveR2qfelNajj8Rj/auR2Hvzhcld6b9D8EYh6U+B0kAAAAAABJRU5ErkJggg==",
1063
- },
1064
- {
1065
- key: "speed_2",
1066
- label: "Playback Speed 2x",
1067
- type: "uploader",
1068
- label_tooltip: "Playback Speed 2x",
1069
- initial_value:
1070
- "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQnSURBVHgB7d2PUdRAFMfxh2MBUIGxArECjwqECjwqUCowV4FYgdABVCAdSAekg7ME35pFgnOb3Z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A+JwAAAAAAAAAAAAAAAAAAAAAAAIxWxIjvffytMW5M6e4ziO+fOTxkRNpZKjrgyGDh92oNeSOFKvbuQj9Ef8qQwrVft0hF7sEa2FpnQwdDyT78/nMoNeA7GT40RKMBv5XCFHeI9oO6VDJc5V9blBLPwWPGxcg+psbUSgx4X55uzGtNKjHgMcMcPvfItS+uxIDHDHySfdCUqVGKfkApekZSn3jWVWRrVpEB+waLIYFtSh1mqfS26FriD9U4G/KUtLlZSm9SrdM7eajnNjpd63Reem/SH2FDq35f8ateAAAAAElFTkSuQmCC",
1071
- },
1072
- {
1073
- key: "sleep_timer",
1074
- label: "Sleep Timer Default",
1075
- type: "uploader",
1076
- label_tooltip: "Sleep Timer Default",
1077
- initial_value: null,
1078
- },
1079
- {
1080
- key: "sleep_timer_active",
1081
- label: "Sleep Timer Active",
1082
- type: "uploader",
1083
- label_tooltip: "Sleep Timer Active",
1084
- initial_value: null,
1085
- },
1086
524
  ]
1087
525
  ),
1088
526
  fieldsGroup(
@@ -1482,15 +920,6 @@ function getPlayerConfiguration({ platform, version }) {
1482
920
  },
1483
921
  ]
1484
922
  ),
1485
- // Captions Menu for Mobile
1486
- fieldsGroup("Captions - Overlay", "Captions overlay styles", [
1487
- {
1488
- type: "switch",
1489
- label: "Disable captions overlay",
1490
- key: "disable_captions",
1491
- initial_value: false,
1492
- },
1493
- ]),
1494
923
  fieldsGroup(
1495
924
  "Player Content Subtitle",
1496
925
  "this section enables you to configure the styles of the content meta data displayed on top of the player",
@@ -1871,7 +1300,7 @@ function getPlayerConfiguration({ platform, version }) {
1871
1300
  key: "scrub_color",
1872
1301
  label: "Scrub font color",
1873
1302
  type: "color_picker_rgba",
1874
- initial_value: "rgba(239, 239, 239, 1)", // #EFEFEF
1303
+ initial_value: "rgba(255, 255, 255, 1)",
1875
1304
  label_tooltip:
1876
1305
  "Select the font color for the player's scrub / progress bar",
1877
1306
  },
@@ -1880,7 +1309,7 @@ function getPlayerConfiguration({ platform, version }) {
1880
1309
  key: "scrub_color_duration_inline",
1881
1310
  label: "Scrub total duration font color (inline player)",
1882
1311
  type: "color_picker_rgba",
1883
- initial_value: "rgba(239, 239, 239, 0.65)", // #EFEFEF
1312
+ initial_value: "rgba(255, 255, 255, 0.65)",
1884
1313
  label_tooltip:
1885
1314
  "Select the font color for the player's progress bar total duration label in inline mode",
1886
1315
  conditional_fields: [
@@ -1895,7 +1324,7 @@ function getPlayerConfiguration({ platform, version }) {
1895
1324
  key: "scrub_fontsize_android",
1896
1325
  label: "Android scrub font size",
1897
1326
  type: "number_input",
1898
- initial_value: 12,
1327
+ initial_value: 13,
1899
1328
  label_tooltip:
1900
1329
  "Select the font size for the android player's scrub / progress bar",
1901
1330
  },
@@ -1904,7 +1333,7 @@ function getPlayerConfiguration({ platform, version }) {
1904
1333
  key: "scrub_fontsize_ios",
1905
1334
  label: "iOS scrub font size",
1906
1335
  type: "number_input",
1907
- initial_value: 12,
1336
+ initial_value: 13,
1908
1337
  label_tooltip:
1909
1338
  "Select the font size for the iOS player's scrub / progress bar",
1910
1339
  },
@@ -1913,7 +1342,7 @@ function getPlayerConfiguration({ platform, version }) {
1913
1342
  key: "scrub_lineheight_android",
1914
1343
  label: "Android scrub line height",
1915
1344
  type: "number_input",
1916
- initial_value: 20,
1345
+ initial_value: 16,
1917
1346
  label_tooltip:
1918
1347
  "Select the line height for the android player's scrub / progress bar",
1919
1348
  },
@@ -1922,7 +1351,7 @@ function getPlayerConfiguration({ platform, version }) {
1922
1351
  key: "scrub_lineheight_ios",
1923
1352
  label: "iOS scrub line height",
1924
1353
  type: "number_input",
1925
- initial_value: 20,
1354
+ initial_value: 16,
1926
1355
  label_tooltip:
1927
1356
  "Select the line height for the iOS player's scrub / progress bar",
1928
1357
  },
@@ -1931,7 +1360,7 @@ function getPlayerConfiguration({ platform, version }) {
1931
1360
  key: "scrub_letterspacing_android",
1932
1361
  label: "Android scrub letter spacing",
1933
1362
  type: "number_input",
1934
- initial_value: -0.4,
1363
+ initial_value: 0,
1935
1364
  label_tooltip:
1936
1365
  "Select the letter spacing for the android player's scrub / progress bar",
1937
1366
  },
@@ -1940,7 +1369,7 @@ function getPlayerConfiguration({ platform, version }) {
1940
1369
  key: "scrub_letterspacing_ios",
1941
1370
  label: "iOS scrub letter spacing",
1942
1371
  type: "number_input",
1943
- initial_value: -0.4,
1372
+ initial_value: 0,
1944
1373
  label_tooltip:
1945
1374
  "Select the letter spacing for the iOS player's scrub / progress bar",
1946
1375
  },
@@ -2019,7 +1448,7 @@ function getPlayerConfiguration({ platform, version }) {
2019
1448
  },
2020
1449
  {
2021
1450
  key: "lock_controls_when_player_opens",
2022
- label: "Lock controls each time the player opens",
1451
+ label: "Lock controls when player opens",
2023
1452
  initial_value: false,
2024
1453
  type: "switch",
2025
1454
  label_tooltip:
@@ -2219,50 +1648,18 @@ function getPlayerConfiguration({ platform, version }) {
2219
1648
  );
2220
1649
  }
2221
1650
 
2222
- compact([
2223
- {
2224
- key: "liveCatchUpEnabled",
2225
- label: "Live Catch Up",
2226
- initial_value: true,
2227
- type: "switch",
2228
- label_tooltip:
2229
- "Seek to current live edge position after resuming from pause",
2230
- },
2231
- mobileOnly(platform, {
2232
- type: "number_input",
2233
- label_tooltip:
2234
- "Interval for updating live audio metadata, including the title and subtitle",
2235
- label: "Live Audio player info update interval",
2236
- key: "audio_live_player_update_interval",
2237
- initial_value: 60,
2238
- }),
2239
- ]).forEach((field) => {
2240
- general.fields.push(field);
2241
- });
1651
+ // ---- Web Platforms fields ---- //
2242
1652
 
2243
- if (isMobile(platform)) {
2244
- general.fields.push(
2245
- fieldsGroup("Always Show Scrub Bar & Timestamp", "", [
2246
- {
2247
- key: "always_show_scrub_bar_and_timestamp",
2248
- label: "Always Show Scrub Bar & Timestamp",
2249
- initial_value: false,
2250
- type: "switch",
2251
- label_tooltip:
2252
- "When enabled, progress bar will always appear while playing in full screen. otherwise, progress bar will appear only when tapping and revealing all controllers",
2253
- },
2254
- ]),
2255
- fieldsGroup(
2256
- "Audio Tracks",
2257
- "This section allows you to configure default audio track behavior for videos with multiple audio tracks",
2258
- audioTracksSettings
2259
- ),
2260
- fieldsGroup("Legacy configuration", "", audioPlayer)
2261
- );
1653
+ // Temporary option to disable not-working track selector on JW streams
1654
+ if (platform.includes("samsung")) {
1655
+ styles.fields.push({
1656
+ type: "switch",
1657
+ label: "Disable captions overlay",
1658
+ key: "disable_captions",
1659
+ initial_value: false,
1660
+ });
2262
1661
  }
2263
1662
 
2264
- // ---- Web Platforms fields ---- //
2265
-
2266
1663
  if (
2267
1664
  platform.includes("lg") ||
2268
1665
  platform.includes("samsung") ||
@@ -2271,19 +1668,13 @@ function getPlayerConfiguration({ platform, version }) {
2271
1668
  platform.includes("vizio")
2272
1669
  ) {
2273
1670
  styles.fields.push(
2274
- // Captions Menu for TV
1671
+ // Captions Menu
2275
1672
  fieldsGroup("Captions - Overlay", "Captions overlay styles", [
2276
- {
2277
- type: "switch",
2278
- label: "Disable captions overlay",
2279
- key: "disable_captions",
2280
- initial_value: false,
2281
- },
2282
1673
  {
2283
1674
  type: "color_picker_rgba",
2284
1675
  label: "Video Overlay",
2285
1676
  key: "overlay_color",
2286
- initial_value: "rgba(17, 17, 17, 0.5)",
1677
+ initial_value: "rgba(0, 0, 0, 0.5)",
2287
1678
  },
2288
1679
  ]),
2289
1680
  // Captions Menu - Close
@@ -2292,7 +1683,7 @@ function getPlayerConfiguration({ platform, version }) {
2292
1683
  type: "color_picker_rgba",
2293
1684
  label: "Background Color",
2294
1685
  key: "close_background_color",
2295
- initial_value: "rgba(30, 30, 30, 1)",
1686
+ initial_value: "rgba(16, 16, 16, 1)",
2296
1687
  },
2297
1688
  {
2298
1689
  type: "color_picker_rgba",
@@ -2319,31 +1710,31 @@ function getPlayerConfiguration({ platform, version }) {
2319
1710
  type: "color_picker_rgba",
2320
1711
  label: "Background Color",
2321
1712
  key: "menu_background_color",
2322
- initial_value: "rgba(30, 30, 30, 1)",
1713
+ initial_value: "rgba(16, 16, 16, 1)",
2323
1714
  },
2324
1715
  {
2325
1716
  type: "color_picker_rgba",
2326
1717
  label: "Top Gradient - Start",
2327
1718
  key: "menu_top_gradient_start_color",
2328
- initial_value: "rgba(30, 30, 30, 1)",
1719
+ initial_value: "rgba(16, 16, 16, 1)",
2329
1720
  },
2330
1721
  {
2331
1722
  type: "color_picker_rgba",
2332
1723
  label: "Top Gradient - End",
2333
1724
  key: "menu_top_gradient_end_color",
2334
- initial_value: "rgba(30, 30, 30, 0)",
1725
+ initial_value: "rgba(16, 16, 16, 0)",
2335
1726
  },
2336
1727
  {
2337
1728
  type: "color_picker_rgba",
2338
1729
  label: "Bottom Gradient - Start",
2339
1730
  key: "menu_bottom_gradient_start_color",
2340
- initial_value: "rgba(30, 30, 30, 1)",
1731
+ initial_value: "rgba(16, 16, 16, 1)",
2341
1732
  },
2342
1733
  {
2343
1734
  type: "color_picker_rgba",
2344
1735
  label: "Bottom Gradient - End",
2345
1736
  key: "menu_bottom_gradient_end_color",
2346
- initial_value: "rgba(30, 30, 30, 0)",
1737
+ initial_value: "rgba(16, 16, 16, 0)",
2347
1738
  },
2348
1739
  ]),
2349
1740
  // Captions Menu - Header Text Label
@@ -2361,7 +1752,7 @@ function getPlayerConfiguration({ platform, version }) {
2361
1752
  type: "lg_font_selector",
2362
1753
  label: "LG Font Family",
2363
1754
  key: "menu_header_lg_font_family",
2364
- initial_value: "Ubuntu-Bold",
1755
+ initial_value: "Museo-Bold",
2365
1756
  },
2366
1757
  {
2367
1758
  type: "number_input",
@@ -2385,7 +1776,7 @@ function getPlayerConfiguration({ platform, version }) {
2385
1776
  type: "samsung_font_selector",
2386
1777
  label: "Samsung Font Family",
2387
1778
  key: "menu_header_samsung_font_family",
2388
- initial_value: "Ubuntu-Bold",
1779
+ initial_value: "SmsungOneUI-Bold",
2389
1780
  },
2390
1781
  {
2391
1782
  type: "number_input",
@@ -2409,7 +1800,7 @@ function getPlayerConfiguration({ platform, version }) {
2409
1800
  type: "vizio_font_selector",
2410
1801
  label: "Vizio Font Family",
2411
1802
  key: "menu_header_vizio_font_family",
2412
- initial_value: "Ubuntu-Bold",
1803
+ initial_value: "SmsungOneUI-Bold",
2413
1804
  },
2414
1805
  {
2415
1806
  type: "number_input",
@@ -2464,7 +1855,7 @@ function getPlayerConfiguration({ platform, version }) {
2464
1855
  type: "lg_font_selector",
2465
1856
  label: "LG Font Family",
2466
1857
  key: "menu_item_lg_font_family",
2467
- initial_value: "Ubuntu-Medium",
1858
+ initial_value: "Museo-Bold",
2468
1859
  },
2469
1860
  {
2470
1861
  type: "number_input",
@@ -2488,7 +1879,7 @@ function getPlayerConfiguration({ platform, version }) {
2488
1879
  type: "samsung_font_selector",
2489
1880
  label: "Samsung Font Family",
2490
1881
  key: "menu_item_samsung_font_family",
2491
- initial_value: "Ubuntu-Medium",
1882
+ initial_value: "SmsungOneUI-Bold",
2492
1883
  },
2493
1884
  {
2494
1885
  type: "number_input",
@@ -2512,7 +1903,7 @@ function getPlayerConfiguration({ platform, version }) {
2512
1903
  type: "vizio_font_selector",
2513
1904
  label: "Vizio Font Family",
2514
1905
  key: "menu_item_vizio_font_family",
2515
- initial_value: "Ubuntu-Medium",
1906
+ initial_value: "SmsungOneUI-Bold",
2516
1907
  },
2517
1908
  {
2518
1909
  type: "number_input",
@@ -2573,7 +1964,7 @@ function getPlayerConfiguration({ platform, version }) {
2573
1964
  type: "number_input",
2574
1965
  label: "Border Thickness",
2575
1966
  key: "menu_item_border_thickness",
2576
- initial_value: 4,
1967
+ initial_value: 5,
2577
1968
  },
2578
1969
  ]
2579
1970
  ),
@@ -2595,17 +1986,8 @@ function getPlayerConfiguration({ platform, version }) {
2595
1986
 
2596
1987
  // ---- TV fields ---- //
2597
1988
 
2598
- if (isTV(platform)) {
1989
+ if (getDevice(platform) === "tv") {
2599
1990
  styles.fields.push(
2600
- fieldsGroup("Component Styles", "Component Styles", [
2601
- {
2602
- type: "number_input",
2603
- label: "TV component container height",
2604
- key: "tv_component_container_height",
2605
- label_tooltip: "TV component container height in px",
2606
- initial_value: 400,
2607
- },
2608
- ]),
2609
1991
  // Scrub colors
2610
1992
  fieldsGroup(
2611
1993
  "Scrub bar",
@@ -2616,7 +1998,7 @@ function getPlayerConfiguration({ platform, version }) {
2616
1998
  key: "scrub_total",
2617
1999
  label: "Scrub bar color",
2618
2000
  type: "color_picker_rgba",
2619
- initial_value: "rgba(239, 239, 239, 0.35)",
2001
+ initial_value: "rgba(255, 255, 255, 0.35)",
2620
2002
  label_tooltip:
2621
2003
  "Select the bar color for the player's scrub / progress bar",
2622
2004
  },
@@ -2625,7 +2007,7 @@ function getPlayerConfiguration({ platform, version }) {
2625
2007
  key: "scrub_buffer",
2626
2008
  label: "Scrub bar buffer color",
2627
2009
  type: "color_picker_rgba",
2628
- initial_value: "rgba(239, 239, 239, 0.65)",
2010
+ initial_value: "rgba(255, 255, 255, 0.8)",
2629
2011
  label_tooltip:
2630
2012
  "Select the buffer bar color for the player's scrub / progress bar",
2631
2013
  },
@@ -2634,7 +2016,7 @@ function getPlayerConfiguration({ platform, version }) {
2634
2016
  key: "scrub_progress",
2635
2017
  label: "Scrub bar progress color",
2636
2018
  type: "color_picker_rgba",
2637
- initial_value: "rgba(254, 20, 72, 1)",
2019
+ initial_value: "rgba(4, 207, 153, 1)",
2638
2020
  label_tooltip:
2639
2021
  "Select the progress bar color for the player's scrub / progress bar",
2640
2022
  },
@@ -2643,7 +2025,7 @@ function getPlayerConfiguration({ platform, version }) {
2643
2025
  key: "scrub_handle",
2644
2026
  label: "Scrub bar handle color",
2645
2027
  type: "color_picker_rgba",
2646
- initial_value: "rgba(239, 239, 239, 1)",
2028
+ initial_value: "rgba(255, 255, 255, 1)",
2647
2029
  label_tooltip:
2648
2030
  "Select the bar handle / marker color for the player's scrub / progress bar",
2649
2031
  },
@@ -2664,25 +2046,25 @@ function getPlayerConfiguration({ platform, version }) {
2664
2046
  type: "lg_tv_font_selector",
2665
2047
  label: "LG Font Family",
2666
2048
  key: "lg_tv_video_player_title_font_family",
2667
- initial_value: "Ubuntu-Bold",
2049
+ initial_value: "Museo-Bold",
2668
2050
  },
2669
2051
  {
2670
2052
  type: "number_input",
2671
2053
  label: "LG Font Size",
2672
2054
  key: "lg_tv_video_player_title_font_size",
2673
- initial_value: 58,
2055
+ initial_value: 64,
2674
2056
  },
2675
2057
  {
2676
2058
  type: "samsung_font_selector",
2677
2059
  label: "Samsung Font Family",
2678
2060
  key: "samsung_tv_video_player_title_font_family",
2679
- initial_value: "Ubuntu-Bold",
2061
+ initial_value: "SamsungOne-800",
2680
2062
  },
2681
2063
  {
2682
2064
  type: "number_input",
2683
2065
  label: "Samsung Font Size",
2684
2066
  key: "samsung_tv_video_player_title_font_size",
2685
- initial_value: 58,
2067
+ initial_value: 64,
2686
2068
  },
2687
2069
  {
2688
2070
  type: "vizio_font_selector",
@@ -2694,43 +2076,43 @@ function getPlayerConfiguration({ platform, version }) {
2694
2076
  type: "number_input",
2695
2077
  label: "Vizio Font Size",
2696
2078
  key: "vizio_video_player_title_font_size",
2697
- initial_value: 58,
2079
+ initial_value: 64,
2698
2080
  },
2699
2081
  {
2700
2082
  type: "tvos_font_selector",
2701
2083
  label: "tvOS Font Family",
2702
2084
  key: "tv_os_video_player_title_font_family",
2703
- initial_value: "Ubuntu-Bold",
2085
+ initial_value: "SFProText-Medium",
2704
2086
  },
2705
2087
  {
2706
2088
  type: "number_input",
2707
2089
  label: "tvOS Font Size",
2708
2090
  key: "tv_os_video_player_title_font_size",
2709
- initial_value: 58,
2091
+ initial_value: 48,
2710
2092
  },
2711
2093
  {
2712
2094
  type: "android_font_selector",
2713
2095
  label: "Android TV Font Family",
2714
2096
  key: "android_tv_video_player_title_font_family",
2715
- initial_value: "Ubuntu-Bold",
2716
- },
2717
- {
2718
- type: "number_input",
2719
- label: "Android TV Font Size",
2720
- key: "android_tv_video_player_title_font_size",
2721
- initial_value: 58,
2097
+ initial_value: "Roboto-Bold",
2722
2098
  },
2723
2099
  {
2724
2100
  type: "android_font_selector",
2725
2101
  label: "Fire TV Font Family",
2726
2102
  key: "amazon_video_player_title_font_family",
2727
- initial_value: "Ubuntu-Bold",
2103
+ initial_value: "Roboto-Bold",
2104
+ },
2105
+ {
2106
+ type: "number_input",
2107
+ label: "Android TV Font Size",
2108
+ key: "android_tv_video_player_title_font_size",
2109
+ initial_value: 50,
2728
2110
  },
2729
2111
  {
2730
2112
  type: "number_input",
2731
2113
  label: "Fire TV Font Size",
2732
2114
  key: "amazon_video_player_title_font_size",
2733
- initial_value: 58,
2115
+ initial_value: 50,
2734
2116
  },
2735
2117
  ]
2736
2118
  ),
@@ -2749,7 +2131,7 @@ function getPlayerConfiguration({ platform, version }) {
2749
2131
  type: "lg_tv_font_selector",
2750
2132
  label: "LG Font Family",
2751
2133
  key: "lg_tv_video_player_summary_font_family",
2752
- initial_value: "Ubuntu-Medium",
2134
+ initial_value: "Museo-Bold",
2753
2135
  },
2754
2136
  {
2755
2137
  type: "number_input",
@@ -2761,7 +2143,7 @@ function getPlayerConfiguration({ platform, version }) {
2761
2143
  type: "samsung_font_selector",
2762
2144
  label: "Samsung Font Family",
2763
2145
  key: "samsung_tv_video_player_summary_font_family",
2764
- initial_value: "Ubuntu-Medium",
2146
+ initial_value: "SamsungOne-800",
2765
2147
  },
2766
2148
  {
2767
2149
  type: "number_input",
@@ -2773,7 +2155,7 @@ function getPlayerConfiguration({ platform, version }) {
2773
2155
  type: "vizio_font_selector",
2774
2156
  label: "Vizio Font Family",
2775
2157
  key: "vizio_video_player_summary_font_family",
2776
- initial_value: "Ubuntu-Medium",
2158
+ initial_value: "Ubuntu-Bold",
2777
2159
  },
2778
2160
  {
2779
2161
  type: "number_input",
@@ -2785,37 +2167,37 @@ function getPlayerConfiguration({ platform, version }) {
2785
2167
  type: "tvos_font_selector",
2786
2168
  label: "tvOS Font Family",
2787
2169
  key: "tv_os_video_player_summary_font_family",
2788
- initial_value: "Ubuntu-Medium",
2170
+ initial_value: "SFProText-Medium",
2789
2171
  },
2790
2172
  {
2791
2173
  type: "number_input",
2792
2174
  label: "tvOS Font Size",
2793
2175
  key: "tv_os_video_player_summary_font_size",
2794
- initial_value: 30,
2176
+ initial_value: 24,
2795
2177
  },
2796
2178
  {
2797
2179
  type: "android_font_selector",
2798
2180
  label: "Android TV Font Family",
2799
2181
  key: "android_tv_video_player_summary_font_family",
2800
- initial_value: "Ubuntu-Medium",
2801
- },
2802
- {
2803
- type: "number_input",
2804
- label: "Android TV Font Size",
2805
- key: "android_tv_video_player_summary_font_size",
2806
- initial_value: 30,
2182
+ initial_value: "Roboto-Medium",
2807
2183
  },
2808
2184
  {
2809
2185
  type: "android_font_selector",
2810
2186
  label: "Fire TV Font Family",
2811
2187
  key: "amazon_video_player_summary_font_family",
2812
- initial_value: "Ubuntu-Medium",
2188
+ initial_value: "Roboto-Medium",
2189
+ },
2190
+ {
2191
+ type: "number_input",
2192
+ label: "Android TV Font Size",
2193
+ key: "android_tv_video_player_summary_font_size",
2194
+ initial_value: 25,
2813
2195
  },
2814
2196
  {
2815
2197
  type: "number_input",
2816
2198
  label: "Fire TV Font Size",
2817
2199
  key: "amazon_video_player_summary_font_size",
2818
- initial_value: 30,
2200
+ initial_value: 25,
2819
2201
  },
2820
2202
  ]
2821
2203
  ),
@@ -2824,71 +2206,65 @@ function getPlayerConfiguration({ platform, version }) {
2824
2206
  "Audio Player - Title Text",
2825
2207
  "Audio Player Title Text Label Styles",
2826
2208
  [
2827
- {
2828
- key: "audio_player_title_color",
2829
- label: "Audio player title color",
2830
- type: "color_picker_rgba",
2831
- initial_value: "rgba(239, 239, 239, 1)",
2832
- },
2833
2209
  {
2834
2210
  type: "lg_tv_font_selector",
2835
2211
  label: "LG Font Family",
2836
2212
  key: "lg_tv_audio_player_title_font_family",
2837
- initial_value: "Ubuntu-Bold",
2213
+ initial_value: "Museo-Bold",
2838
2214
  },
2839
2215
  {
2840
2216
  type: "number_input",
2841
2217
  label: "LG Font Size",
2842
2218
  key: "lg_tv_audio_player_title_font_size",
2843
- initial_value: 40,
2219
+ initial_value: 38,
2844
2220
  },
2845
2221
  {
2846
2222
  type: "samsung_font_selector",
2847
2223
  label: "Samsung Font Family",
2848
2224
  key: "samsung_tv_audio_player_title_font_family",
2849
- initial_value: "Ubuntu-Bold",
2225
+ initial_value: "SamsungOne-800",
2850
2226
  },
2851
2227
  {
2852
2228
  type: "number_input",
2853
2229
  label: "Samsung Font Size",
2854
2230
  key: "samsung_tv_audio_player_title_font_size",
2855
- initial_value: 40,
2231
+ initial_value: 38,
2856
2232
  },
2857
2233
  {
2858
2234
  type: "vizio_font_selector",
2859
2235
  label: "Vizio Font Family",
2860
- key: "vizio_audio_player_title_font_family",
2236
+ key: "vizio_tv_audio_player_title_font_family",
2861
2237
  initial_value: "Ubuntu-Bold",
2862
2238
  },
2863
2239
  {
2864
2240
  type: "number_input",
2865
2241
  label: "Vizio Font Size",
2866
2242
  key: "vizio_audio_player_title_font_size",
2867
- initial_value: 40,
2243
+ initial_value: 38,
2868
2244
  },
2869
2245
  {
2870
2246
  type: "tvos_font_selector",
2871
2247
  label: "tvOS Font Family",
2872
2248
  key: "tv_os_audio_player_title_font_family",
2873
- initial_value: "Ubuntu-Bold",
2249
+ initial_value: "SFProText-Medium",
2874
2250
  },
2875
2251
  {
2876
2252
  type: "number_input",
2877
2253
  label: "tvOS Font Size",
2878
2254
  key: "tv_os_audio_player_title_font_size",
2879
- initial_value: 40,
2255
+ initial_value: 38,
2880
2256
  },
2881
2257
  {
2882
2258
  type: "android_font_selector",
2883
2259
  label: "Android TV Font Family",
2884
2260
  key: "android_tv_audio_player_title_font_family",
2885
- initial_value: "Ubuntu-Bold",
2261
+ initial_value: "Roboto-Bold",
2886
2262
  },
2887
2263
  {
2888
2264
  type: "number_input",
2889
2265
  label: "Android TV Font Size",
2890
2266
  key: "android_tv_audio_player_title_font_size",
2891
- initial_value: 40,
2267
+ initial_value: 50,
2892
2268
  },
2893
2269
  ]
2894
2270
  ),
@@ -2897,109 +2273,65 @@ function getPlayerConfiguration({ platform, version }) {
2897
2273
  "Audio Player - Summary Text",
2898
2274
  "Audio Player Summary Text Label Styles",
2899
2275
  [
2900
- {
2901
- key: "audio_player_summary_color",
2902
- label: "Audio player summary color",
2903
- type: "color_picker_rgba",
2904
- initial_value: "rgba(239, 239, 239, 0.8)",
2905
- },
2906
2276
  {
2907
2277
  type: "lg_tv_font_selector",
2908
2278
  label: "LG Font Family",
2909
2279
  key: "lg_tv_audio_player_summary_font_family",
2910
- initial_value: "Ubuntu-Medium",
2280
+ initial_value: "Museo-Bold",
2911
2281
  },
2912
2282
  {
2913
2283
  type: "number_input",
2914
2284
  label: "LG Font Size",
2915
2285
  key: "lg_tv_audio_player_summary_font_size",
2916
- initial_value: 22,
2286
+ initial_value: 20,
2917
2287
  },
2918
2288
  {
2919
2289
  type: "samsung_font_selector",
2920
2290
  label: "Samsung Font Family",
2921
2291
  key: "samsung_tv_audio_player_summary_font_family",
2922
- initial_value: "Ubuntu-Medium",
2292
+ initial_value: "SamsungOne-800",
2923
2293
  },
2924
2294
  {
2925
2295
  type: "number_input",
2926
2296
  label: "Samsung Font Size",
2927
2297
  key: "samsung_tv_audio_player_summary_font_size",
2928
- initial_value: 22,
2298
+ initial_value: 20,
2929
2299
  },
2930
2300
  {
2931
2301
  type: "vizio_font_selector",
2932
2302
  label: "Vizio Font Family",
2933
2303
  key: "vizio_audio_player_summary_font_family",
2934
- initial_value: "Ubuntu-Medium",
2304
+ initial_value: "Ubuntu-Bold",
2935
2305
  },
2936
2306
  {
2937
2307
  type: "number_input",
2938
2308
  label: "Vizio Font Size",
2939
2309
  key: "vizio_audio_player_summary_font_size",
2940
- initial_value: 22,
2310
+ initial_value: 20,
2941
2311
  },
2942
2312
  {
2943
2313
  type: "tvos_font_selector",
2944
2314
  label: "tvOS Font Family",
2945
2315
  key: "tv_os_audio_player_summary_font_family",
2946
- initial_value: "Ubuntu-Medium",
2316
+ initial_value: "SFProText-Medium",
2947
2317
  },
2948
2318
  {
2949
2319
  type: "number_input",
2950
2320
  label: "tvOS Font Size",
2951
2321
  key: "tv_os_audio_player_summary_font_size",
2952
- initial_value: 22,
2322
+ initial_value: 20,
2953
2323
  },
2954
2324
  {
2955
2325
  type: "android_font_selector",
2956
2326
  label: "Android TV Font Family",
2957
2327
  key: "android_tv_audio_player_summary_font_family",
2958
- initial_value: "Ubuntu-Medium",
2328
+ initial_value: "Roboto-Medium",
2959
2329
  },
2960
2330
  {
2961
2331
  type: "number_input",
2962
2332
  label: "Android TV Font Size",
2963
2333
  key: "android_tv_audio_player_summary_font_size",
2964
- initial_value: 22,
2965
- },
2966
- ]
2967
- ),
2968
- fieldsGroup(
2969
- "Audio Player Background",
2970
- "This section allows you to configure the audio player layout",
2971
- [
2972
- {
2973
- key: "audio_player_background_color",
2974
- label: "Background Color",
2975
- label_tooltip:
2976
- "Set a background color using hex format and opacity. If left empty, the default color from the app’s theme will be used.",
2977
- type: "color_picker_rgba",
2978
- initial_value: "rgba(17, 17, 17, 1)",
2979
- },
2980
- {
2981
- key: "audio_player_background_image",
2982
- label: "Background Image",
2983
- label_tooltip:
2984
- "Upload a background image for the audio player. If no image is provided, the background color will be used as a fallback.",
2985
- type: "uploader",
2986
- default: "",
2987
- },
2988
- {
2989
- type: "text_input",
2990
- label: "Item Image Key",
2991
- key: "audio_player_artwork_image_key",
2992
- label_tooltip:
2993
- "Define the key used to fetch the item’s image. If left empty, a default image will be shown.",
2994
- initial_value: "image_base",
2995
- },
2996
- {
2997
- key: "audio_player_artwork_border_radius",
2998
- label: "Item Image Corner Radius",
2999
- label_tooltip:
3000
- "Set the corner radius (in pixels) for item images. Leave empty for sharp corners (0px).",
3001
- type: "number_input",
3002
- initial_value: 16,
2334
+ initial_value: 25,
3003
2335
  },
3004
2336
  ]
3005
2337
  ),
@@ -3012,7 +2344,7 @@ function getPlayerConfiguration({ platform, version }) {
3012
2344
  type: "lg_tv_font_selector",
3013
2345
  label: "LG Font Family",
3014
2346
  key: "lg_tv_player_time_font_family",
3015
- initial_value: "Ubuntu-Medium",
2347
+ initial_value: "Museo-Bold",
3016
2348
  },
3017
2349
  {
3018
2350
  type: "number_input",
@@ -3024,7 +2356,7 @@ function getPlayerConfiguration({ platform, version }) {
3024
2356
  type: "samsung_font_selector",
3025
2357
  label: "Samsung Font Family",
3026
2358
  key: "samsung_tv_player_time_font_family",
3027
- initial_value: "Ubuntu-Medium",
2359
+ initial_value: "SamsungOne-800",
3028
2360
  },
3029
2361
  {
3030
2362
  type: "number_input",
@@ -3035,12 +2367,12 @@ function getPlayerConfiguration({ platform, version }) {
3035
2367
  {
3036
2368
  type: "vizio_font_selector",
3037
2369
  label: "Vizio Font Family",
3038
- key: "vizio_tv_player_time_font_family",
3039
- initial_value: "Ubuntu-Medium",
2370
+ key: "vizio_player_time_font_family",
2371
+ initial_value: "Ubuntu-Bold",
3040
2372
  },
3041
2373
  {
3042
2374
  type: "number_input",
3043
- label: "vizio Font Size",
2375
+ label: "Vizio Font Size",
3044
2376
  key: "vizio_player_time_font_size",
3045
2377
  initial_value: 20,
3046
2378
  },
@@ -3048,7 +2380,7 @@ function getPlayerConfiguration({ platform, version }) {
3048
2380
  type: "android_font_selector",
3049
2381
  label: "Android TV Font Family",
3050
2382
  key: "android_tv_player_time_font_family",
3051
- initial_value: "Ubuntu-Medium",
2383
+ initial_value: "Roboto-Bold",
3052
2384
  },
3053
2385
  {
3054
2386
  type: "number_input",
@@ -3060,7 +2392,7 @@ function getPlayerConfiguration({ platform, version }) {
3060
2392
  type: "android_font_selector",
3061
2393
  label: "Fire TV Font Family",
3062
2394
  key: "amazon_player_time_font_family",
3063
- initial_value: "Ubuntu-Medium",
2395
+ initial_value: "Roboto-Bold",
3064
2396
  },
3065
2397
  {
3066
2398
  type: "number_input",
@@ -3079,7 +2411,7 @@ function getPlayerConfiguration({ platform, version }) {
3079
2411
  type: "lg_tv_font_selector",
3080
2412
  label: "LG Font Family",
3081
2413
  key: "lg_tv_audio_player_run_time_font_family",
3082
- initial_value: "Ubuntu-Medium",
2414
+ initial_value: "Museo-Bold",
3083
2415
  },
3084
2416
  {
3085
2417
  type: "number_input",
@@ -3091,7 +2423,7 @@ function getPlayerConfiguration({ platform, version }) {
3091
2423
  type: "samsung_font_selector",
3092
2424
  label: "Samsung Font Family",
3093
2425
  key: "samsung_tv_audio_player_run_time_font_family",
3094
- initial_value: "Ubuntu-Medium",
2426
+ initial_value: "SamsungOne-800",
3095
2427
  },
3096
2428
  {
3097
2429
  type: "number_input",
@@ -3103,7 +2435,7 @@ function getPlayerConfiguration({ platform, version }) {
3103
2435
  type: "vizio_font_selector",
3104
2436
  label: "Vizio Font Family",
3105
2437
  key: "vizio_audio_player_run_time_font_family",
3106
- initial_value: "Ubuntu-Medium",
2438
+ initial_value: "Ubuntu-Bold",
3107
2439
  },
3108
2440
  {
3109
2441
  type: "number_input",
@@ -3115,7 +2447,7 @@ function getPlayerConfiguration({ platform, version }) {
3115
2447
  type: "tvos_font_selector",
3116
2448
  label: "tvOS Font Family",
3117
2449
  key: "tv_os_audio_player_run_time_font_family",
3118
- initial_value: "Ubuntu-Medium",
2450
+ initial_value: "SFProText-Medium",
3119
2451
  },
3120
2452
  {
3121
2453
  type: "number_input",
@@ -3127,13 +2459,13 @@ function getPlayerConfiguration({ platform, version }) {
3127
2459
  type: "android_font_selector",
3128
2460
  label: "Android TV Font Family",
3129
2461
  key: "android_tv_audio_player_run_time_font_family",
3130
- initial_value: "Ubuntu-Medium",
2462
+ initial_value: "Roboto-Medium",
3131
2463
  },
3132
2464
  {
3133
2465
  type: "number_input",
3134
2466
  label: "Android TV Font Size",
3135
2467
  key: "android_tv_audio_player_run_time_font_size",
3136
- initial_value: 20,
2468
+ initial_value: 25,
3137
2469
  },
3138
2470
  ]
3139
2471
  ),
@@ -3149,7 +2481,7 @@ function getPlayerConfiguration({ platform, version }) {
3149
2481
  type: "color_picker_rgba",
3150
2482
  label: "Background color",
3151
2483
  key: "button_background_color",
3152
- initial_value: "rgba(0, 0, 0, 0)",
2484
+ initial_value: "rgba(255, 255, 255, 0)",
3153
2485
  },
3154
2486
  {
3155
2487
  type: "color_picker_rgba",
@@ -3161,7 +2493,7 @@ function getPlayerConfiguration({ platform, version }) {
3161
2493
  type: "color_picker_rgba",
3162
2494
  label: "Focused background color",
3163
2495
  key: "button_focused_background_color",
3164
- initial_value: "rgba(0, 0, 0, 0)",
2496
+ initial_value: "rgba(239, 239, 239, 1)",
3165
2497
  },
3166
2498
  ]),
3167
2499
  // Player progress bar
@@ -3170,433 +2502,70 @@ function getPlayerConfiguration({ platform, version }) {
3170
2502
  type: "color_picker_rgba",
3171
2503
  label: "Background color",
3172
2504
  key: "progress_bar_background_color",
3173
- initial_value: "rgba(254, 20, 72, 1)",
2505
+ initial_value: "rgba(239, 239, 239, 1)",
3174
2506
  },
3175
2507
  ])
3176
2508
  );
3177
2509
  }
3178
2510
 
3179
- // ---- Audio player (mobile) ---- //
3180
-
3181
- if (isMobile(platform)) {
3182
- styles.fields.push(
3183
- fieldsGroup(
3184
- "Audio Player",
3185
- "This section allows you to configure the audio player layout",
3186
- [
3187
- {
3188
- key: "full_screen_audio_player",
3189
- label: "Use audio player layout",
3190
- initial_value: true,
3191
- type: "switch",
3192
- label_tooltip:
3193
- "When disabled, audio playback will be shown in the video player layout instead",
3194
- },
3195
- {
3196
- type: "text_input",
3197
- label: "Image key",
3198
- key: "audio_player_image_key",
3199
- label_tooltip:
3200
- "Specify a key where we could find the image in your entry",
3201
- initial_value: "image_base",
3202
- },
3203
- {
3204
- key: "audio_player_background_image",
3205
- label: "Static image",
3206
- label_tooltip:
3207
- "If no image key is configured, or no image is found in the feed — this static image will be used instead.",
3208
- type: "uploader",
3209
- default: "",
3210
- },
3211
- {
3212
- key: "audio_player_artwork_border_radius",
3213
- label_tooltip:
3214
- "Adjust the corner radius of the artwork image in the audio player",
3215
- label: "Image Corner Radius",
3216
- type: "number_input",
3217
- initial_value: 16,
3218
- rules: "conditional",
3219
- conditional_fields: [
3220
- {
3221
- key: "styles/full_screen_audio_player",
3222
- condition_value: true,
3223
- },
3224
- ],
3225
- },
3226
- {
3227
- key: "audio_player_artwork_shadow_enabled",
3228
- label: "Image Shadow Enabled",
3229
- type: "switch",
3230
- initial_value: true,
3231
- rules: "conditional",
3232
- conditional_fields: [
3233
- {
3234
- key: "styles/full_screen_audio_player",
3235
- condition_value: true,
3236
- },
3237
- ],
3238
- },
3239
- ]
3240
- )
3241
- );
3242
- }
3243
-
3244
- if (isTV(platform)) {
3245
- general.fields.push(
3246
- fieldsGroup(
3247
- "Samsung and LG TV only",
3248
- "This section allows you to configure advanced settings for Samsung and LG TV",
3249
- [
3250
- {
3251
- key: "use_legacy_player",
3252
- label: "Use Enhanced Player",
3253
- initial_value: true,
3254
- type: "switch",
3255
- label_tooltip:
3256
- "When this option is enabled, the app will use the web optimized / enhanced player on LG, Samsung, and the browser",
3257
- },
3258
- {
3259
- key: "limit_video_resolution",
3260
- label: "Limit Video Resolution For Old LG/Samsung TVs",
3261
- initial_value: false,
3262
- type: "switch",
3263
- label_tooltip:
3264
- "The player will use 1280x720 resolution and lower for old LG/Samsung TVs(2021 and lower) to avoid player buffering issue",
3265
- },
3266
- {
3267
- key: "show_debug_overlay",
3268
- label: "Show Debug Overlay",
3269
- initial_value: false,
3270
- type: "switch",
3271
- label_tooltip:
3272
- "When this option is enabled, you will have an overlay showing some important stats about the player and content",
3273
- },
3274
- {
3275
- key: "force_recovery_in_unknown_errors",
3276
- label: "Force Recovery On Unknown Errors",
3277
- initial_value: false,
3278
- type: "switch",
3279
- label_tooltip:
3280
- "When this option is enabled, player will try to recover from unknown errors by reloading the player",
3281
- },
3282
- {
3283
- key: "advanced_player_config",
3284
- label: "Advanced Player Configuration",
3285
- type: "text_input",
3286
- multiline: true,
3287
- initial_value:
3288
- "{ html5: { vhs: { limitRenditionByPlayerDimensions: true } } }",
3289
- label_tooltip:
3290
- "This field allows you to override the player configuration / initialization options. i.e. html5: { vhs: { limitRenditionByPlayerDimensions: false } } Please ensure your configuration matches the player you are targeting, and that it is a valid json. See config options here: https://videojs.com/guides/options/",
3291
- },
3292
- {
3293
- key: "use_dashjs_player",
3294
- label: "Use Enhanced Player for DASH streams",
3295
- initial_value: true,
3296
- type: "switch",
3297
- label_tooltip:
3298
- "When this option is enabled, the app will use the dash.js player for MPEG-DASH streams on LG / Samsung TV and in the browser",
3299
- },
3300
- {
3301
- key: "use_hlsjs_player",
3302
- label: "Use Enhanced Player for HLS streams",
3303
- initial_value: false,
3304
- type: "switch",
3305
- label_tooltip:
3306
- "When this option is enabled, the app will use the hls.js player for HLS streams on LG / Samsung TV and in the browser",
3307
- },
3308
- {
3309
- key: "use_hlsjs_subtitles",
3310
- label: "Use HLS JS subtitles",
3311
- initial_value: false,
3312
- type: "switch",
3313
- label_tooltip:
3314
- "When this option is enabled, the app will use hls.js player funtionality to display subtitles. Otherwise, it will render them in a custom component",
3315
- rules: "conditional",
3316
- conditional_fields: [
3317
- {
3318
- key: "general/use_hlsjs_player",
3319
- condition_value: true,
3320
- },
3321
- ],
3322
- },
3323
- ]
3324
- ),
3325
- fieldsGroup(
3326
- "Audio Tracks",
3327
- "This section allows you to configure default audio track behavior for videos with multiple audio tracks",
3328
- audioTracksSettings
3329
- ),
3330
- fieldsGroup("Legacy configuration", "", audioPlayer)
3331
- );
3332
- }
3333
-
3334
- if (isMobile(platform)) {
3335
- styles.fields.push(
3336
- fieldsGroup(
3337
- "Skip Button",
3338
- "This section allows you to configure the skip button styles",
3339
- [
3340
- {
3341
- type: "switch",
3342
- key: "skip_button_enabled",
3343
- label_tooltip: "Enables Skip button on the player.",
3344
- label: "Enable",
3345
- initial_value: true,
3346
- },
3347
- {
3348
- type: "switch",
3349
- key: "skip_button_persistent",
3350
- label_tooltip:
3351
- "Show skip button always if enabled, otherwise show only when the user taps on the screen.",
3352
- label: "Persistent Button Toggle",
3353
- initial_value: true,
3354
- },
3355
- {
3356
- type: "color_picker_rgba",
3357
- label_tooltip: "",
3358
- label: "Background Color",
3359
- key: "skip_button_style_button_background_color",
3360
- initial_value: "rgba(0, 0, 0, 0.3)",
3361
- },
3362
- {
3363
- type: "color_picker_rgba",
3364
- label_tooltip: "",
3365
- label: "Background Color Pressed",
3366
- key: "skip_button_style_button_pressed_background_color",
3367
- initial_value: "rgba(0, 0, 0, 0.3)",
3368
- },
3369
- {
3370
- type: "number_input",
3371
- label_tooltip: "",
3372
- label: "Border Width",
3373
- key: "skip_button_style_button_border_width",
3374
- initial_value: 1.5,
3375
- },
3376
- {
3377
- type: "color_picker_rgba",
3378
- label_tooltip: "",
3379
- label: "Border Color",
3380
- key: "skip_button_style_button_border_color",
3381
- initial_value: "rgba(255, 255, 255, 1)",
3382
- },
3383
- {
3384
- type: "color_picker_rgba",
3385
- label_tooltip: "",
3386
- label: "Border Color Pressed",
3387
- key: "skip_button_style_button_pressed_border_color",
3388
- initial_value: "rgba(255, 255, 255, 0.5)",
3389
- },
3390
- {
3391
- type: "number_input",
3392
- label_tooltip: "",
3393
- label: "Corner Radius",
3394
- key: "skip_button_style_button_border_radius",
3395
- initial_value: 4,
3396
- },
3397
- {
3398
- type: "number_input",
3399
- label_tooltip: "",
3400
- label: "Margin Top",
3401
- key: "skip_button_style_button_margin_top",
3402
- initial_value: 0,
3403
- },
3404
- {
3405
- type: "number_input",
3406
- label_tooltip: "",
3407
- label: "Margin Right",
3408
- key: "skip_button_style_button_margin_right",
3409
- initial_value: 8,
3410
- },
3411
- {
3412
- type: "number_input",
3413
- label_tooltip: "",
3414
- label: "Margin Bottom",
3415
- key: "skip_button_style_button_margin_bottom",
3416
- initial_value: 0,
3417
- },
3418
- {
3419
- type: "number_input",
3420
- label_tooltip: "",
3421
- label: "Margin Left",
3422
- key: "skip_button_style_button_margin_left",
3423
- initial_value: 0,
3424
- },
3425
- {
3426
- type: "android_font_selector",
3427
- label_tooltip: "",
3428
- label: "Android Font Family",
3429
- key: "skip_button_style_text_android_font_family",
3430
- initial_value: "Roboto-Medium",
3431
- },
3432
- {
3433
- type: "number_input",
3434
- label_tooltip: "",
3435
- label: "Android Font Size",
3436
- key: "skip_button_style_text_android_font_size",
3437
- initial_value: 12,
3438
- },
3439
- {
3440
- type: "number_input",
3441
- label_tooltip: "",
3442
- label: "Android Letter Spacing",
3443
- key: "skip_button_style_text_android_letter_spacing",
3444
- initial_value: 0,
3445
- },
3446
- {
3447
- type: "number_input",
3448
- label_tooltip: "",
3449
- label: "Android Line Height",
3450
- key: "skip_button_style_text_android_line_height",
3451
- initial_value: 20,
3452
- },
3453
- {
3454
- type: "ios_font_selector",
3455
- label_tooltip: "",
3456
- label: "iOS Font Family",
3457
- key: "skip_button_style_text_ios_font_family",
3458
- initial_value: "SFProText-Semibold",
3459
- },
3460
- {
3461
- type: "number_input",
3462
- label_tooltip: "",
3463
- label: "iOS Font Size",
3464
- key: "skip_button_style_text_ios_font_size",
3465
- initial_value: 12,
3466
- },
3467
- {
3468
- type: "number_input",
3469
- label_tooltip: "",
3470
- label: "iOS Letter Spacing",
3471
- key: "skip_button_style_text_ios_letter_spacing",
3472
- initial_value: -0.2,
3473
- },
3474
- {
3475
- type: "number_input",
3476
- label_tooltip: "",
3477
- label: "iOS Line Height",
3478
- key: "skip_button_style_text_ios_line_height",
3479
- initial_value: 20,
3480
- },
3481
- {
3482
- type: "color_picker_rgba",
3483
- label_tooltip: "",
3484
- label: "Font Color",
3485
- key: "skip_button_style_text_color",
3486
- initial_value: "rgba(255, 255, 255, 1)",
3487
- },
3488
- {
3489
- type: "color_picker_rgba",
3490
- label_tooltip: "",
3491
- label: "Font Color Pressed",
3492
- key: "skip_button_style_text_pressed_color",
3493
- initial_value: "rgba(255, 255, 255, 0.5)",
3494
- },
3495
- {
3496
- type: "select",
3497
- options: [
3498
- {
3499
- text: "None",
3500
- value: "none",
3501
- },
3502
- {
3503
- text: "Uppercase",
3504
- value: "uppercase",
3505
- },
3506
- {
3507
- text: "Lowercase",
3508
- value: "lowercase",
3509
- },
3510
- {
3511
- text: "Capitalize",
3512
- value: "capitalize",
3513
- },
3514
- ],
3515
- label: "Text Transform",
3516
- key: "skip_button_style_text_text_transform",
3517
- initial_value: "none",
3518
- },
3519
- {
3520
- type: "number_input",
3521
- label_tooltip: "",
3522
- label: "Padding Top",
3523
- key: "skip_button_style_text_padding_top",
3524
- initial_value: 7,
3525
- },
3526
- {
3527
- type: "number_input",
3528
- label_tooltip: "",
3529
- label: "Padding Right",
3530
- key: "skip_button_style_text_padding_right",
3531
- initial_value: 10,
3532
- },
3533
- {
3534
- type: "number_input",
3535
- label_tooltip: "",
3536
- label: "Padding Bottom",
3537
- key: "skip_button_style_text_padding_bottom",
3538
- initial_value: 7,
3539
- },
3540
- {
3541
- type: "number_input",
3542
- label_tooltip: "",
3543
- label: "Padding Left",
3544
- key: "skip_button_style_text_padding_left",
3545
- initial_value: 10,
3546
- },
3547
- ]
3548
- )
3549
- );
3550
- }
2511
+ // ---- Audio player background - TV & mobile ---- //
3551
2512
 
3552
- const customConfigurationWarning = {
3553
- label:
3554
- "These fields are deprecated and now moved to screen configuration inside the Studio. If you have your player setup as a screen in Studio, these fields will be overwritten with a screen configuration.",
3555
- type: "link",
3556
- };
2513
+ styles.fields.push(
2514
+ fieldsGroup(
2515
+ "Audio Player",
2516
+ "This section allows you to configure the audio player layout",
2517
+ [
2518
+ {
2519
+ key: "audio_player_background_color",
2520
+ label: "Audio player background color",
2521
+ type: "colorpicker",
2522
+ initial_value: "#00000066",
2523
+ },
2524
+ {
2525
+ key: "audio_player_title_color",
2526
+ label: "Audio player title color",
2527
+ type: "colorpicker",
2528
+ initial_value: "#efefefcc",
2529
+ },
2530
+ {
2531
+ key: "audio_player_summary_color",
2532
+ label: "Audio player summary color",
2533
+ type: "colorpicker",
2534
+ initial_value: "#efefefcc",
2535
+ },
2536
+ {
2537
+ key: "audio_player_background_image",
2538
+ type: "uploader",
2539
+ default: "https://i.imgur.com/USTctfL.png",
2540
+ },
2541
+ {
2542
+ key: "audio_player_artwork_aspect_ratio",
2543
+ label: "Audio Player Artwork Aspect Ratio",
2544
+ initial_value: "16:9",
2545
+ type: "dropdown",
2546
+ options: ["1:1", "4:3", "16:9", ""],
2547
+ multiple: false,
2548
+ label_tooltip: "Choose the default aspect ratio for the artwork",
2549
+ },
2550
+ {
2551
+ key: "audio_player_artwork_border_radius",
2552
+ label: "Audio Player Artwork Corner Radius",
2553
+ type: "number_input",
2554
+ initial_value: 16,
2555
+ },
2556
+ ]
2557
+ )
2558
+ );
3557
2559
 
3558
- const manifest = {
2560
+ return {
3559
2561
  styles,
3560
2562
  general,
3561
2563
  localizations,
3562
- custom_configuration_fields: [
3563
- customConfigurationWarning,
3564
- ...remapConditionalFieldsForPluginGallery(
3565
- ...styles.fields,
3566
- ...general.fields
3567
- ),
3568
- ],
2564
+ custom_configuration_fields: remapConditionalFieldsForPluginGallery(
2565
+ ...styles.fields,
2566
+ ...general.fields
2567
+ ),
3569
2568
  };
3570
-
3571
- if (platform.includes("android") || platform.includes("amazon")) {
3572
- manifest.npm_dependencies = [
3573
- `@applicaster/zapp-react-native-default-player@${version}`,
3574
- ];
3575
-
3576
- manifest.project_dependencies = [
3577
- {
3578
- "zapp-react-native-default-player":
3579
- "node_modules/@applicaster/zapp-react-native-default-player/android",
3580
- },
3581
- ];
3582
-
3583
- manifest.extra_dependencies = [];
3584
- }
3585
-
3586
- if (platform.includes("ios") || platform.includes("tvos")) {
3587
- manifest.npm_dependencies = [
3588
- `@applicaster/zapp-react-native-default-player@${version}`,
3589
- ];
3590
-
3591
- manifest.extra_dependencies = [
3592
- {
3593
- DefaultPlayer:
3594
- ":path =\u003e './node_modules/@applicaster/zapp-react-native-default-player/apple/DefaultPlayer.podspec'",
3595
- },
3596
- ];
3597
- }
3598
-
3599
- return manifest;
3600
2569
  }
3601
2570
 
3602
2571
  const player = (options) => getPlayerConfiguration(options);