@designcrowd/library.brand-page 5.15.27-ast-bug → 5.16.0-ast-bug
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.
- package/lib/src/{CreatedOnBrandCrowd-de-de-CkGQ4G_0.js → CreatedOnBrandCrowd-de-de-CQaFsHRq.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-CI0R4imY.js → CreatedOnBrandCrowd-en-us-BqYPoS2-.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-DfVOwAgX.js → CreatedOnBrandCrowd-es-es-BiXPRMaO.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-CDzs65j6.js → CreatedOnBrandCrowd-fr-ca-CSSwi6HC.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-CDzs65j6.js → CreatedOnBrandCrowd-fr-fr-CSSwi6HC.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-DT5-KEqF.js → CreatedOnBrandCrowd-pt-br-fgBCi1Yx.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-DT5-KEqF.js → CreatedOnBrandCrowd-pt-pt-fgBCi1Yx.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-CrXmnwk7.js → CreatedOnDcom-de-de-JvCcqsZ3.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-BxDKAimo.js → CreatedOnDcom-en-us-BzL4R7K1.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BV-bf9GA.js → CreatedOnDcom-es-es-BmxDrOv4.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-BM0lK2ZN.js → CreatedOnDcom-fr-ca-CQXQARJP.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-DAmKbip-.js → CreatedOnDcom-fr-fr-C_Q5VmJU.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-_tHW_OU7.js → CreatedOnDcom-pt-br-B_6hh63J.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-CYkWyII5.js → CreatedOnDcom-pt-pt-D4Pyw8eD.js} +1 -1
- package/lib/src/brand-page/components/payment/__fixtures__/request-payment.d.ts +1 -0
- package/lib/src/brand-page/components/payment/__fixtures__/support-me.d.ts +1 -0
- package/lib/src/brand-page/models/brand-page-context.model.d.ts +1 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +36 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +10 -1
- package/lib/src/brand-page-maker/components/device/Device.mixin.d.ts +3 -1
- package/lib/src/brand-page-maker/components/device/Device.mixin.js +5 -1
- package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/preview/Preview.mixin.js +5 -2
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +1 -1
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +3 -3
- package/lib/src/brand-page-maker/stores/video/video-store.d.ts +13 -1
- package/lib/src/brand-page-maker/stores/video/video-store.js +11 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +12 -6
- package/lib/src/css/library.brand-page-brandPage.min.css +12 -6
- package/lib/src/css/library.brand-page-designCom.min.css +12 -6
- package/lib/src/css/library.brand-page-preview.min.css +12 -6
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-CO4o8RlD.js → lib-BCRpz2_m.js} +11256 -11171
- package/package.json +1 -1
- package/src/brand-page/components/media/Video.vue +27 -4
- package/src/brand-page/models/brand-page-context.model.ts +1 -0
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +13 -0
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +16 -0
- package/src/brand-page-maker/components/device/Device.mixin.ts +5 -2
- package/src/brand-page-maker/components/layout-switcher/LayoutSwitcher.vue +15 -1
- package/src/brand-page-maker/components/preview/Preview.mixin.ts +5 -1
- package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +1 -1
- package/src/brand-page-maker/components/video-play/VideoPlayButton.vue +31 -0
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +3 -3
- package/src/brand-page-maker/stores/video/video-store.ts +12 -1
package/package.json
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
ref="videoElement"
|
|
5
5
|
:class="videoClasses"
|
|
6
6
|
:src="media?.videoUrl"
|
|
7
|
-
autoplay
|
|
7
|
+
:autoplay="!context.isPreview"
|
|
8
8
|
muted
|
|
9
9
|
loop
|
|
10
10
|
:controls="false"
|
|
11
11
|
playsinline
|
|
12
|
-
preload="
|
|
12
|
+
preload="auto"
|
|
13
13
|
@canplay="attemptAutoplay"
|
|
14
14
|
/>
|
|
15
15
|
<FallbackImage
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/>
|
|
24
24
|
</template>
|
|
25
25
|
<script setup lang="ts">
|
|
26
|
-
import { nextTick, onMounted, ref } from 'vue';
|
|
26
|
+
import { nextTick, onMounted, ref, watch } from 'vue';
|
|
27
27
|
import { type BrandPageContext, type GettyVideoViewModel } from '../../../lib';
|
|
28
28
|
import FallbackImage from '../fallback-image/FallbackImage.vue';
|
|
29
29
|
|
|
@@ -44,7 +44,11 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
44
44
|
const videoElement = ref<HTMLVideoElement>();
|
|
45
45
|
|
|
46
46
|
const attemptAutoplay = async () => {
|
|
47
|
-
if (
|
|
47
|
+
if (
|
|
48
|
+
props.context.options?.renderVideoAsImage ||
|
|
49
|
+
!videoElement.value ||
|
|
50
|
+
!Boolean(props.context.options?.shouldPlayVideos)
|
|
51
|
+
) {
|
|
48
52
|
return;
|
|
49
53
|
}
|
|
50
54
|
|
|
@@ -55,6 +59,25 @@ const attemptAutoplay = async () => {
|
|
|
55
59
|
}
|
|
56
60
|
};
|
|
57
61
|
|
|
62
|
+
watch(
|
|
63
|
+
() => props.context.options?.shouldPlayVideos,
|
|
64
|
+
async (newValue) => {
|
|
65
|
+
if (!videoElement.value || props.context.options?.renderVideoAsImage) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
try {
|
|
70
|
+
if (newValue) {
|
|
71
|
+
await videoElement.value.play();
|
|
72
|
+
} else {
|
|
73
|
+
videoElement.value.pause();
|
|
74
|
+
}
|
|
75
|
+
} catch (error) {
|
|
76
|
+
console.error('Video play/pause failed:', error);
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
);
|
|
80
|
+
|
|
58
81
|
onMounted(async () => {
|
|
59
82
|
await nextTick();
|
|
60
83
|
attemptAutoplay();
|
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
useBrandPageMakerUserStore,
|
|
33
33
|
useLocalisedRouteStore,
|
|
34
34
|
useUiStore,
|
|
35
|
+
useVideoStore,
|
|
35
36
|
} from '../../stores';
|
|
36
37
|
import type { AdminPreviewLogoTemplateModel } from '../../stores/admin-logo-settings';
|
|
37
38
|
import { useUiContentSettingsStore } from '../../../shared/content-settings/store';
|
|
@@ -86,6 +87,7 @@ export default defineComponent({
|
|
|
86
87
|
const productSettingStore = useProductConfigStore();
|
|
87
88
|
const router = useRouter();
|
|
88
89
|
const localisedRouteStore = useLocalisedRouteStore();
|
|
90
|
+
const videoStore = useVideoStore();
|
|
89
91
|
|
|
90
92
|
return {
|
|
91
93
|
commonTr,
|
|
@@ -97,6 +99,13 @@ export default defineComponent({
|
|
|
97
99
|
),
|
|
98
100
|
// the state of Mobile/Desktop tab
|
|
99
101
|
viewport: computed(() => brandPageMakerStore.viewport),
|
|
102
|
+
// the play setting for videos in maker
|
|
103
|
+
shouldPlayVideos: computed(() => videoStore.shouldPlayVideos),
|
|
104
|
+
hasGettyVideos: computed(
|
|
105
|
+
() =>
|
|
106
|
+
brandPageMakerStore.gettyVideoIds &&
|
|
107
|
+
brandPageMakerStore.gettyVideoIds.length > 0,
|
|
108
|
+
),
|
|
100
109
|
// the state of active Preview Device type
|
|
101
110
|
deviceMode: computed(() => uiStore.deviceMode),
|
|
102
111
|
isMobileDevice: computed(
|
|
@@ -136,6 +145,7 @@ export default defineComponent({
|
|
|
136
145
|
shopSettingStore,
|
|
137
146
|
productSettingStore,
|
|
138
147
|
router,
|
|
148
|
+
videoStore,
|
|
139
149
|
};
|
|
140
150
|
},
|
|
141
151
|
data() {
|
|
@@ -370,5 +380,8 @@ export default defineComponent({
|
|
|
370
380
|
onChangeTemplateConfirmModalConfirm() {
|
|
371
381
|
this.brandPageMakerStore.onChangeTemplateConfirmModalConfirm();
|
|
372
382
|
},
|
|
383
|
+
onVideoPlayToggle() {
|
|
384
|
+
this.videoStore.toggleShouldPlayVideo();
|
|
385
|
+
},
|
|
373
386
|
},
|
|
374
387
|
});
|
|
@@ -43,7 +43,10 @@
|
|
|
43
43
|
<LayoutSwitcher
|
|
44
44
|
class="tw-bg-grayscale-200 tw-py-4 tw-border-grayscale-500 tw-border-t tw-border-solid"
|
|
45
45
|
:viewport="viewport"
|
|
46
|
+
:should-play-videos="shouldPlayVideos"
|
|
47
|
+
:has-getty-videos="hasGettyVideos"
|
|
46
48
|
@click="handleSwitchViewport"
|
|
49
|
+
@toggle-should-play="onVideoPlayToggle"
|
|
47
50
|
/>
|
|
48
51
|
</div>
|
|
49
52
|
|
|
@@ -62,12 +65,22 @@
|
|
|
62
65
|
<PreviewWithState :device-mode="deviceMode" />
|
|
63
66
|
</div>
|
|
64
67
|
</Device>
|
|
68
|
+
|
|
65
69
|
<div
|
|
66
70
|
v-else
|
|
67
71
|
class="tw-flex tw-items-center tw-justify-center tw-h-full tw-text-grayscale-600"
|
|
68
72
|
>
|
|
69
73
|
<Loader />
|
|
70
74
|
</div>
|
|
75
|
+
|
|
76
|
+
<VideoPlayButton
|
|
77
|
+
v-if="isBrandPageLoaded && hasGettyVideos && isMobileDevice"
|
|
78
|
+
:toggle-should-play="onVideoPlayToggle"
|
|
79
|
+
:should-play-videos="shouldPlayVideos"
|
|
80
|
+
variant="mobile"
|
|
81
|
+
icon-color="tw-text-gray-500"
|
|
82
|
+
class="tw-mb-2 tw-mt-2"
|
|
83
|
+
/>
|
|
71
84
|
</div>
|
|
72
85
|
<div
|
|
73
86
|
class="js-bp-action-bar tw-hidden lg:tw-block tw-order-first lg:tw-order-last tw-w-full lg:tw-mb-0"
|
|
@@ -124,6 +137,8 @@ import AdminLogoSettings from '../admin-logo-settings/AdminLogoSettings.vue';
|
|
|
124
137
|
import AdminBackgroundSettings from '../admin-background-settings/AdminBackgroundSettings.vue';
|
|
125
138
|
import ConfirmModal from '../../../shared/confirm-modal/ConfirmModal.vue';
|
|
126
139
|
import ProductConfigModal from '../../../brand-page-maker/components/shop/ProductConfigModal.vue';
|
|
140
|
+
import VideoPlayButton from '../video-play/VideoPlayButton.vue';
|
|
141
|
+
|
|
127
142
|
import { SIDE_BAR_TAB_NAMES } from '../../constants';
|
|
128
143
|
import { VIEWPORTS, BRAND_PAGE_TYPES } from '../../../brand-page';
|
|
129
144
|
import { UI_DEVICE_MODES, UI_SCREENSIZE_MODES } from '../../../shared/models';
|
|
@@ -149,6 +164,7 @@ export default {
|
|
|
149
164
|
SideBar,
|
|
150
165
|
StyleSettings,
|
|
151
166
|
ProductConfigModal,
|
|
167
|
+
VideoPlayButton,
|
|
152
168
|
TemplatesSettings: BrandPageMakerTemplateSettings,
|
|
153
169
|
},
|
|
154
170
|
mixins: [BrandPageMakerMixin],
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
|
-
import { debounce } from '../../../shared/functions';
|
|
3
2
|
import { DEVICE_CSS_TRANSITION_DELAY } from '../../constants';
|
|
4
3
|
|
|
5
4
|
export default defineComponent({
|
|
@@ -35,11 +34,15 @@ export default defineComponent({
|
|
|
35
34
|
}
|
|
36
35
|
},
|
|
37
36
|
},
|
|
38
|
-
|
|
39
37
|
mounted() {
|
|
40
38
|
const t = setTimeout(() => {
|
|
41
39
|
this.visible = true;
|
|
42
40
|
clearTimeout(t);
|
|
43
41
|
}, 100);
|
|
44
42
|
},
|
|
43
|
+
methods: {
|
|
44
|
+
toggleShouldPlay() {
|
|
45
|
+
this.$emit('toggle-should-play');
|
|
46
|
+
},
|
|
47
|
+
},
|
|
45
48
|
});
|
|
@@ -38,6 +38,13 @@
|
|
|
38
38
|
</span>
|
|
39
39
|
</button>
|
|
40
40
|
</div>
|
|
41
|
+
<VideoPlayButton
|
|
42
|
+
v-if="hasGettyVideos"
|
|
43
|
+
:toggle-should-play="toggleShouldPlay"
|
|
44
|
+
:should-play-videos="shouldPlayVideos"
|
|
45
|
+
variant="desktop"
|
|
46
|
+
icon-color="tw-text-gray-500"
|
|
47
|
+
/>
|
|
41
48
|
</div>
|
|
42
49
|
</template>
|
|
43
50
|
<script setup lang="ts">
|
|
@@ -46,18 +53,25 @@ import type { ViewportsType } from '../../../brand-page';
|
|
|
46
53
|
import { VIEWPORTS } from '../../../brand-page';
|
|
47
54
|
import { computed } from 'vue';
|
|
48
55
|
import { layoutSwitcherTr } from '../../../composables/useTranslate';
|
|
56
|
+
import VideoPlayButton from '../video-play/VideoPlayButton.vue';
|
|
49
57
|
|
|
50
58
|
interface Props {
|
|
51
59
|
viewport: ViewportsType;
|
|
60
|
+
shouldPlayVideos: boolean;
|
|
61
|
+
hasGettyVideos: boolean;
|
|
52
62
|
}
|
|
53
63
|
|
|
54
64
|
const props = defineProps<Props>();
|
|
55
65
|
|
|
56
66
|
const isMobile = computed(() => props.viewport === VIEWPORTS.mobile);
|
|
57
67
|
|
|
58
|
-
const emits = defineEmits(['click']);
|
|
68
|
+
const emits = defineEmits(['click', 'toggle-should-play']);
|
|
59
69
|
|
|
60
70
|
const click = (value: string) => {
|
|
61
71
|
emits('click', value);
|
|
62
72
|
};
|
|
73
|
+
|
|
74
|
+
const toggleShouldPlay = () => {
|
|
75
|
+
emits('toggle-should-play');
|
|
76
|
+
};
|
|
63
77
|
</script>
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
useBrandPageContainerStore,
|
|
10
10
|
useBrandPageMakerStore,
|
|
11
11
|
useRouteStore,
|
|
12
|
+
useVideoStore,
|
|
12
13
|
} from '../../../brand-page-maker/stores';
|
|
13
14
|
import BrandPageMakerPage from '../brandpage-maker-page/BrandPageMakerPage.vue';
|
|
14
15
|
import type { UiDeviceMode } from '../../../shared/models';
|
|
@@ -54,11 +55,13 @@ export default defineComponent({
|
|
|
54
55
|
const containerStore = useBrandPageContainerStore();
|
|
55
56
|
const routeStore = useRouteStore();
|
|
56
57
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
58
|
+
const videoStore = useVideoStore();
|
|
57
59
|
|
|
58
60
|
return {
|
|
59
61
|
currentRoute: computed(() => routeStore.currentRoute),
|
|
60
62
|
isDesignCom: computed(() => containerStore.isDesignCom),
|
|
61
63
|
isInitialising: computed(() => brandPageMakerStore.isInitialising),
|
|
64
|
+
shouldPlayVideos: computed(() => videoStore.shouldPlayVideos),
|
|
62
65
|
viewport: brandPageMakerStore.viewport,
|
|
63
66
|
abTests: containerStore.abTests,
|
|
64
67
|
};
|
|
@@ -94,7 +97,8 @@ export default defineComponent({
|
|
|
94
97
|
isServerRender: false,
|
|
95
98
|
options: {
|
|
96
99
|
mediaSizes: MEDIA_SIZES.size1x,
|
|
97
|
-
renderVideoAsImage:
|
|
100
|
+
renderVideoAsImage: false,
|
|
101
|
+
shouldPlayVideos: this.shouldPlayVideos,
|
|
98
102
|
},
|
|
99
103
|
stripePublishableKey: undefined,
|
|
100
104
|
runtimeEnvironment: this.runtimeEnvironment,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="tw-bg-white tw-rounded-full tw-border tw-border-solid tw-border-grayscale-400 tw-cursor-pointer tw-flex tw-items-center tw-justify-center"
|
|
4
|
+
:class="{
|
|
5
|
+
'tw-hidden lg:tw-flex tw-w-10 tw-h-10 tw-absolute tw-right-4':
|
|
6
|
+
variant === 'desktop',
|
|
7
|
+
'tw-flex lg:tw-hidden tw-min-w-10 tw-min-h-10 tw-self-center':
|
|
8
|
+
variant === 'mobile',
|
|
9
|
+
}"
|
|
10
|
+
@click="toggleShouldPlay"
|
|
11
|
+
>
|
|
12
|
+
<Icon
|
|
13
|
+
:name="shouldPlayVideos ? 'maker-pause' : 'maker-play'"
|
|
14
|
+
:color="iconColor"
|
|
15
|
+
:class="variant === 'mobile' ? 'tw-pt-1' : ''"
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script setup lang="ts">
|
|
21
|
+
import { Icon } from '@designcrowd/fe-shared-lib';
|
|
22
|
+
|
|
23
|
+
interface Props {
|
|
24
|
+
toggleShouldPlay: () => void;
|
|
25
|
+
shouldPlayVideos: boolean;
|
|
26
|
+
variant?: 'desktop' | 'mobile';
|
|
27
|
+
iconColor?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const props = defineProps<Props>();
|
|
31
|
+
</script>
|
|
@@ -1377,7 +1377,7 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
1377
1377
|
{
|
|
1378
1378
|
useOldLogoRenderSize: false,
|
|
1379
1379
|
getVideoUrls: videoStore.getVideoUrlsForToken,
|
|
1380
|
-
getS3VideoUrls: videoStore.
|
|
1380
|
+
getS3VideoUrls: videoStore.getOptimisedS3VideoUrlsForToken,
|
|
1381
1381
|
setVideoUrlsWithToken: videoStore.setVideoUrlsWithToken,
|
|
1382
1382
|
},
|
|
1383
1383
|
);
|
|
@@ -1404,7 +1404,7 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
1404
1404
|
{
|
|
1405
1405
|
useOldLogoRenderSize: false,
|
|
1406
1406
|
getVideoUrls: videoStore.getVideoUrlsForToken,
|
|
1407
|
-
getS3VideoUrls: videoStore.
|
|
1407
|
+
getS3VideoUrls: videoStore.getOptimisedS3VideoUrlsForToken,
|
|
1408
1408
|
setVideoUrlsWithToken: videoStore.setVideoUrlsWithToken,
|
|
1409
1409
|
},
|
|
1410
1410
|
);
|
|
@@ -1417,7 +1417,7 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
1417
1417
|
{
|
|
1418
1418
|
useOldLogoRenderSize: false,
|
|
1419
1419
|
getVideoUrls: videoStore.getVideoUrlsForToken,
|
|
1420
|
-
getS3VideoUrls: videoStore.
|
|
1420
|
+
getS3VideoUrls: videoStore.getOptimisedS3VideoUrlsForToken,
|
|
1421
1421
|
setVideoUrlsWithToken: videoStore.setVideoUrlsWithToken,
|
|
1422
1422
|
},
|
|
1423
1423
|
);
|
|
@@ -13,12 +13,14 @@ type VideoUrls = Record<string, VideoUrlData>;
|
|
|
13
13
|
export interface videoStoreState {
|
|
14
14
|
videoUrls: VideoUrls;
|
|
15
15
|
gettyImagesKeyPrefix: string;
|
|
16
|
+
shouldPlayVideos: boolean;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export const useVideoStore = defineStore('video', {
|
|
19
20
|
state: (): videoStoreState => ({
|
|
20
21
|
videoUrls: {},
|
|
21
22
|
gettyImagesKeyPrefix: '',
|
|
23
|
+
shouldPlayVideos: true,
|
|
22
24
|
}),
|
|
23
25
|
actions: {
|
|
24
26
|
setVideoUrlsWithToken(
|
|
@@ -32,16 +34,25 @@ export const useVideoStore = defineStore('video', {
|
|
|
32
34
|
setGettyImageKeyPrefix(prefix: string) {
|
|
33
35
|
this.gettyImagesKeyPrefix = prefix;
|
|
34
36
|
},
|
|
37
|
+
toggleShouldPlayVideo() {
|
|
38
|
+
this.shouldPlayVideos = !this.shouldPlayVideos;
|
|
39
|
+
},
|
|
35
40
|
},
|
|
36
41
|
getters: {
|
|
37
42
|
getVideoUrlsForToken: (state) => (token: string) => {
|
|
38
43
|
return state.videoUrls[token];
|
|
39
44
|
},
|
|
40
|
-
|
|
45
|
+
getPreviewS3VideoUrlsForToken: (state) => (token: string) => {
|
|
41
46
|
return {
|
|
42
47
|
videoUrl: `${CDN_GETTY_S3_URL_PREFIX}/public/${state.gettyImagesKeyPrefix}/${token}/${token}_preview`,
|
|
43
48
|
previewImageUrl: `${CDN_GETTY_S3_URL_PREFIX}/public/${state.gettyImagesKeyPrefix}/${token}/${token}_preview_thumb`,
|
|
44
49
|
};
|
|
45
50
|
},
|
|
51
|
+
getOptimisedS3VideoUrlsForToken: (state) => (token: string) => {
|
|
52
|
+
return {
|
|
53
|
+
videoUrl: `${CDN_GETTY_S3_URL_PREFIX}/public/${state.gettyImagesKeyPrefix}/${token}/${token}_optimised`,
|
|
54
|
+
previewImageUrl: `${CDN_GETTY_S3_URL_PREFIX}/public/${state.gettyImagesKeyPrefix}/${token}/${token}_optimised_thumb`,
|
|
55
|
+
};
|
|
56
|
+
},
|
|
46
57
|
},
|
|
47
58
|
});
|