@clickview/player 0.0.2 → 0.0.3-dev-us.0
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/.storybook/main.js +1 -0
- package/.storybook/stories/Base.stories.tsx +6 -5
- package/.storybook/stories/Interactives.stories.tsx +45 -49
- package/.storybook/stories/utils/mock-playerapi.ts +38 -12
- package/dist/en.json +733 -0
- package/dist/libs/analytics/src/constants/CountryRegionMapping.d.ts +1 -0
- package/dist/libs/analytics/src/constants/Regions.d.ts +1 -0
- package/dist/libs/analytics/src/enums/CountryCode.d.ts +2 -1
- package/dist/libs/analytics/src/enums/RegionName.d.ts +2 -1
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +16 -7
- package/dist/libs/analytics/src/interfaces/Region.d.ts +0 -1
- package/dist/libs/common/src/backbone/core/AppLink.d.ts +1 -0
- package/dist/libs/common/src/backbone/core/LocationUtils.d.ts +1 -0
- package/dist/libs/common/src/backbone/enums/HttpStatus.d.ts +10 -0
- package/dist/libs/common/src/backbone/utils/LocalStorageHelper.d.ts +58 -0
- package/dist/libs/common/src/react/flight/FlightHelpers.d.ts +15 -0
- package/dist/libs/common/src/react/flight/FlightMiddleware.d.ts +11 -0
- package/dist/libs/common/src/react/flight/FlightReducer.d.ts +2 -0
- package/dist/libs/common/src/react/flight/FlightSimulator.d.ts +24 -0
- package/dist/libs/common/src/react/flight/constants/Actions.d.ts +7 -0
- package/dist/libs/common/src/react/flight/constants/index.d.ts +1 -0
- package/dist/libs/common/src/react/flight/data-layers/AjaxRequest.d.ts +2 -0
- package/dist/libs/common/src/react/flight/data-layers/index.d.ts +1 -0
- package/dist/libs/common/src/react/flight/index.d.ts +9 -0
- package/dist/libs/common/src/react/flight/interfaces/Action.d.ts +28 -0
- package/dist/libs/common/src/react/flight/interfaces/Dispatch.d.ts +3 -0
- package/dist/libs/common/src/react/flight/interfaces/HttpRequest.d.ts +27 -0
- package/dist/libs/common/src/react/flight/interfaces/NormalizedData.d.ts +7 -0
- package/dist/libs/common/src/react/flight/interfaces/Response.d.ts +9 -0
- package/dist/libs/common/src/react/flight/interfaces/index.d.ts +9 -0
- package/dist/libs/common/src/react/flight/normalizer/Denormalizer.d.ts +3 -0
- package/dist/libs/common/src/react/flight/normalizer/Normalizer.d.ts +8 -0
- package/dist/libs/common/src/react/flight/normalizer/index.d.ts +2 -0
- package/dist/libs/common/src/react/flight/utils/SimulatorHelper.d.ts +5 -0
- package/dist/libs/common/src/react/flight/utils/StateHelper.d.ts +11 -0
- package/dist/libs/common/src/react/flight/utils/index.d.ts +2 -0
- package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +17 -1
- package/dist/libs/common/src/react/utils/ObjectHelper.d.ts +1 -0
- package/dist/libs/common/src/react/utils/TimeHelper.d.ts +8 -0
- package/dist/libs/shared/src/components/actions/Actions.d.ts +2 -2
- package/dist/libs/shared/src/components/actions/ActionsDropdown.d.ts +1 -1
- package/dist/libs/shared/src/components/app-link/AppLink.d.ts +8 -0
- package/dist/libs/shared/src/components/immersive-reader/ImmersiveReader.d.ts +14 -0
- package/dist/libs/shared/src/components/interactive-questions/InteractiveQuestions.d.ts +3 -1
- package/dist/libs/shared/src/components/text/Text.d.ts +13 -0
- package/dist/libs/shared/src/enums/CountryCode.d.ts +2 -1
- package/dist/libs/shared/src/enums/CurationStatus.d.ts +12 -0
- package/dist/libs/shared/src/enums/InteractionCorrectness.d.ts +8 -0
- package/dist/libs/shared/src/enums/InteractiveAnswerStatus.d.ts +5 -0
- package/dist/libs/shared/src/enums/ObjectStatus.d.ts +3 -3
- package/dist/libs/shared/src/enums/UserGroup.d.ts +3 -3
- package/dist/libs/shared/src/enums/UserRole.d.ts +4 -4
- package/dist/libs/shared/src/enums/WidgetContents.d.ts +3 -1
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +4 -1
- package/dist/libs/shared/src/images/svg/objects/index.d.ts +3 -1
- package/dist/libs/shared/src/interfaces/VideoTypes.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Classification.d.ts +0 -1
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +8 -1
- package/dist/libs/shared/src/interfaces/models/Curriculum.d.ts +3 -1
- package/dist/libs/shared/src/interfaces/models/Customer.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +11 -3
- package/dist/libs/shared/src/interfaces/models/Library.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/User.d.ts +38 -3
- package/dist/libs/shared/src/interfaces/models/Video.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/interactive-results/InteractiveResult.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/interactive-results/InteractiveResultSet.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/interactive-results/StudentAnswer.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/interactive-results/StudentAttempt.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/interactive-results/StudentResult.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/interactive-results/index.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/requests/CreateInteractiveMetadataRequest.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/requests/CreateInteractiveRequest.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/requests/EditInteractiveMetadataOriginRequest.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/requests/EditInteractiveMetadataRequest.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/requests/index.d.ts +1 -0
- package/dist/libs/shared/src/utils/interaction-type-helper/InteractionTypeHelper.d.ts +4 -0
- package/dist/player-app.css +387 -1694
- package/dist/player-app.js +1208 -5568
- package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-item.d.ts +1 -1
- package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-items.d.ts +1 -1
- package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-load-progress.d.ts +1 -1
- package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-play-progress.d.ts +1 -1
- package/dist/projects/player/src/components/chapters-button/chapter-menu-item.d.ts +1 -1
- package/dist/projects/player/src/components/collapserator/collapserator.d.ts +1 -0
- package/dist/projects/player/src/components/player/player.d.ts +1 -1
- package/dist/projects/player/src/components/subs-caps-button/SubCapsMenuItem.d.ts +52 -0
- package/dist/projects/player/src/components/subs-caps-button/subtitle-size-menu-item.d.ts +53 -0
- package/dist/projects/player/src/components/subtitle-size-button/subtitle-size-button.d.ts +1 -0
- package/dist/projects/player/src/components/text-track-settings/text-track-settings.d.ts +56 -0
- package/dist/projects/player/src/components/thumbnail-display/thumbnail-display.d.ts +2 -1
- package/dist/projects/player/src/index.d.ts +0 -2
- package/dist/projects/player/src/interfaces/models/PlaybackObject.d.ts +8 -0
- package/dist/projects/player/src/players/base-player.d.ts +10 -0
- package/dist/projects/player/src/players/interactive-player.d.ts +6 -1
- package/dist/projects/player/src/players/player.d.ts +2 -1
- package/dist/projects/player/src/plugins/create-clip-plugin/components/clip-timepoint-selector/clip-timepoint-selector-handle.d.ts +1 -1
- package/dist/projects/player/src/plugins/create-clip-plugin/components/clip-timepoint-selector/clip-timepoint-selector.d.ts +1 -1
- package/dist/projects/player/src/plugins/interactive-plugin/components/continue-session/continue-session.d.ts +8 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interaction-actions/interaction-actions.d.ts +4 -1
- package/dist/projects/player/src/plugins/interactive-plugin/components/interaction-footer/interaction-footer.d.ts +2 -2
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/InteractiveSummaryWrapper.d.ts +18 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/interactions-bar/interactions-bar.d.ts +9 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/interactive-summary.d.ts +20 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/progress-summary/progress-summary.d.ts +12 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/show-summary-button/show-summary-button.d.ts +13 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/move-timepoint/move-timepoint.d.ts +12 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/reorder-interactions/reorder-interactions.d.ts +9 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/seek-bar/interactive-bar-items.d.ts +1 -1
- package/dist/projects/player/src/plugins/interactive-plugin/components/sliding-timepoint/sliding-timepoints.d.ts +11 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/timepoint/timepoint-component.d.ts +28 -9
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/interactive-immersive-reader/interactive-immersive-reader.d.ts +8 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/missing-word/missing-word-interaction.d.ts +2 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/multiple-choice/multiple-choice-interaction.d.ts +3 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/true-or-false/true-or-false-interaction.d.ts +3 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/view-components.d.ts +3 -0
- package/dist/projects/player/src/plugins/interactive-plugin/hooks/useInteractiveState.d.ts +10 -4
- package/dist/projects/player/src/plugins/interactive-plugin/hooks/useInteractiveTrack.d.ts +1 -0
- package/dist/projects/player/src/plugins/interactive-plugin/hooks/useLockPlayer.d.ts +2 -2
- package/dist/projects/player/src/plugins/interactive-plugin/hooks/useStateManager.d.ts +12 -4
- package/dist/projects/player/src/plugins/interactive-plugin/interactive-plugin.d.ts +47 -0
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/InteractionProps.d.ts +1 -1
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/InteractiveState.d.ts +5 -1
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/LatestSession.d.ts +11 -0
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/index.d.ts +1 -0
- package/dist/projects/player/src/plugins/interactive-plugin/utils/InteractiveReducer.d.ts +2 -2
- package/dist/projects/player/src/plugins/interactive-plugin/utils/ResultsService.d.ts +4 -1
- package/dist/projects/player/src/plugins/interactive-plugin/utils/helpers.d.ts +1 -0
- package/dist/projects/player/src/plugins/interactive-plugin/utils/interactive-ajax.d.ts +1 -0
- package/dist/projects/player/src/plugins/next-video-plugin/next-video-plugin.d.ts +0 -8
- package/dist/projects/player/src/plugins/persist-quality-settings-plugin/persist-quality-settings-plugin.d.ts +33 -0
- package/dist/projects/player/src/plugins/persist-subtitle-settings-plugin/persist-subtitle-settings-plugin.d.ts +38 -0
- package/dist/projects/player/src/plugins/picture-in-picture-plugin/picture-in-picture-plugin.d.ts +5 -1
- package/dist/projects/player/src/plugins/progress-reporter-plugin/progress-reporter-plugin.d.ts +59 -0
- package/dist/projects/player/src/plugins/touch-controls-plugin/components/touch-controls/touch-controls.d.ts +1 -1
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/components/drag-handle/drag-handle.d.ts +53 -0
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/components/drag-targets/drag-targets.d.ts +54 -0
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/components/whiteboard-mode-button/whiteboard-mode-button.d.ts +23 -0
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/components/whiteboard-mode-button/whiteboard-mode-menu-item.d.ts +15 -0
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/contants/WhiteboardSides.d.ts +5 -0
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/interfaces/WhiteboardSide.d.ts +1 -0
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/whiteboard-mode-plugin.d.ts +34 -0
- package/dist/projects/player/src/react/InteractivePlayer.d.ts +1 -0
- package/dist/projects/player/src/react/Player.d.ts +1 -1
- package/dist/projects/player/src/utils/local-storage-helper.d.ts +6 -0
- package/package.json +7 -4
- package/typings/utils/imports.d.ts +1 -1
package/.storybook/main.js
CHANGED
|
@@ -3,13 +3,14 @@ import { ClickViewPlayer, Player } from '../../src/index';
|
|
|
3
3
|
import { mockplayerApi } from './utils/mock-playerapi';
|
|
4
4
|
import { mockSetups } from './utils/mock-setup';
|
|
5
5
|
|
|
6
|
+
const PLAYER_API_STAGING = 'https://player.web.au.stg.cvnet.io';
|
|
7
|
+
|
|
6
8
|
export default {
|
|
7
9
|
title: 'Base'
|
|
8
10
|
};
|
|
9
11
|
|
|
10
|
-
export const Default = () =>
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
export const Default = () => <ClickViewPlayer viewKey='basic' fetch={mockplayerApi} />;
|
|
13
|
+
|
|
13
14
|
Default.storyName = 'Default';
|
|
14
15
|
|
|
15
16
|
export const Chapters = () =>
|
|
@@ -48,7 +49,7 @@ export const Error = () =>
|
|
|
48
49
|
<ClickViewPlayer viewKey='error' fetch={mockplayerApi} />;
|
|
49
50
|
|
|
50
51
|
export const PlayerApi = () =>
|
|
51
|
-
<ClickViewPlayer viewKey='camwashere' />;
|
|
52
|
+
<ClickViewPlayer viewKey='camwashere' playerApi={new URL(PLAYER_API_STAGING)} />;
|
|
52
53
|
|
|
53
54
|
PlayerApi.storyName = 'Player API';
|
|
54
55
|
|
|
@@ -56,7 +57,7 @@ PlayerApi.storyName = 'Player API';
|
|
|
56
57
|
* This story uses an intentionally invalid viewKey.
|
|
57
58
|
*/
|
|
58
59
|
export const PlayerApiError = () =>
|
|
59
|
-
<ClickViewPlayer viewKey='camwashere_error' />;
|
|
60
|
+
<ClickViewPlayer viewKey='camwashere_error' playerApi={new URL(PLAYER_API_STAGING)} />;
|
|
60
61
|
|
|
61
62
|
PlayerApiError.storyName = 'Player API Error';
|
|
62
63
|
|
|
@@ -1,68 +1,64 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ClickViewInteractivePlayer, InteractivePlayer } from '../../src/index';
|
|
3
|
-
import { InteractiveMode } from '../../src/plugins/interactive-plugin/interfaces';
|
|
4
|
-
import { mockplayerApi } from './utils/mock-playerapi';
|
|
5
|
-
|
|
6
|
-
const IMAGE_API_URL_STAGING = 'https://image.api.stg.cvnet.io';
|
|
7
2
|
|
|
8
3
|
export default {
|
|
9
4
|
title: 'Interactives'
|
|
10
5
|
};
|
|
11
6
|
|
|
12
|
-
export const Default = () =>
|
|
13
|
-
<ClickViewInteractivePlayer viewKey='interactive' fetch={mockplayerApi} />;
|
|
7
|
+
export const Default = () => <h1>Sorry no interactives</h1>;
|
|
14
8
|
|
|
15
|
-
|
|
16
|
-
<ClickViewInteractivePlayer
|
|
17
|
-
viewKey='basic'
|
|
18
|
-
fetch={mockplayerApi}
|
|
19
|
-
mode={InteractiveMode.Create}
|
|
20
|
-
imageApi={IMAGE_API_URL_STAGING} />;
|
|
9
|
+
Default.storyName = 'Default';
|
|
21
10
|
|
|
22
|
-
export const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
// export const Create = () =>
|
|
12
|
+
// <ClickViewInteractivePlayer
|
|
13
|
+
// viewKey='interactive'
|
|
14
|
+
// fetch={mockplayerApi}
|
|
15
|
+
// mode={InteractiveMode.Create}
|
|
16
|
+
// imageApi={new URL(IMAGE_API_URL_STAGING)} />;
|
|
26
17
|
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
// export const Annotation = () => {
|
|
19
|
+
// function onReady(player: InteractivePlayer): void {
|
|
20
|
+
// player.currentTime(15);
|
|
21
|
+
// }
|
|
29
22
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
player.currentTime(13);
|
|
33
|
-
}
|
|
23
|
+
// return <ClickViewInteractivePlayer onReady={onReady} viewKey='interactive' fetch={mockplayerApi} autoplay={true} />;
|
|
24
|
+
// };
|
|
34
25
|
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
// export const ShortAnswer = () => {
|
|
27
|
+
// function onReady(player: InteractivePlayer): void {
|
|
28
|
+
// player.currentTime(13);
|
|
29
|
+
// }
|
|
37
30
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
player.currentTime(17);
|
|
41
|
-
}
|
|
31
|
+
// return <ClickViewInteractivePlayer onReady={onReady} viewKey='interactive' fetch={mockplayerApi} autoplay={true} />;
|
|
32
|
+
// };
|
|
42
33
|
|
|
43
|
-
|
|
44
|
-
|
|
34
|
+
// export const Image = () => {
|
|
35
|
+
// function onReady(player: InteractivePlayer): void {
|
|
36
|
+
// player.currentTime(17);
|
|
37
|
+
// }
|
|
45
38
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
player.currentTime(5);
|
|
49
|
-
}
|
|
39
|
+
// return <ClickViewInteractivePlayer onReady={onReady} viewKey='interactive' fetch={mockplayerApi} autoplay={true} />;
|
|
40
|
+
// };
|
|
50
41
|
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
// export const TrueOrFalse = () => {
|
|
43
|
+
// function onReady(player: InteractivePlayer): void {
|
|
44
|
+
// player.currentTime(5);
|
|
45
|
+
// }
|
|
53
46
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
player.currentTime(7);
|
|
57
|
-
}
|
|
47
|
+
// return <ClickViewInteractivePlayer onReady={onReady} viewKey='interactive' fetch={mockplayerApi} autoplay={true} />;
|
|
48
|
+
// };
|
|
58
49
|
|
|
59
|
-
|
|
60
|
-
|
|
50
|
+
// export const MultipleChoice = () => {
|
|
51
|
+
// function onReady(player: InteractivePlayer): void {
|
|
52
|
+
// player.currentTime(7);
|
|
53
|
+
// }
|
|
61
54
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
player.currentTime(9);
|
|
65
|
-
}
|
|
55
|
+
// return <ClickViewInteractivePlayer onReady={onReady} viewKey='interactive' fetch={mockplayerApi} autoplay={true} />;
|
|
56
|
+
// };
|
|
66
57
|
|
|
67
|
-
|
|
68
|
-
|
|
58
|
+
// export const MissingWord = () => {
|
|
59
|
+
// function onReady(player: InteractivePlayer): void {
|
|
60
|
+
// player.currentTime(9);
|
|
61
|
+
// }
|
|
62
|
+
|
|
63
|
+
// return <ClickViewInteractivePlayer onReady={onReady} viewKey='interactive' fetch={mockplayerApi} autoplay={true} />;
|
|
64
|
+
// };
|
|
@@ -163,6 +163,20 @@ const mockResources = <Resources> {
|
|
|
163
163
|
|
|
164
164
|
const emptyLocalCacheAddresses = <LocalCacheAddress[]> [];
|
|
165
165
|
|
|
166
|
+
const mockExtraData = {
|
|
167
|
+
videoId: '',
|
|
168
|
+
viewerId: '',
|
|
169
|
+
viewerCustomerId: '',
|
|
170
|
+
region: '',
|
|
171
|
+
mediaId: '',
|
|
172
|
+
settings: {
|
|
173
|
+
showSubtitles: false,
|
|
174
|
+
playbackProfile: '',
|
|
175
|
+
playbackProfileLocalCache: '',
|
|
176
|
+
playbackSubtitleSizeDefault: ''
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
166
180
|
const sources: { [key: string]: PlaybackObject } = {
|
|
167
181
|
basic: {
|
|
168
182
|
files: basicFiles,
|
|
@@ -178,7 +192,8 @@ const sources: { [key: string]: PlaybackObject } = {
|
|
|
178
192
|
}]
|
|
179
193
|
},
|
|
180
194
|
localCacheAddresses: emptyLocalCacheAddresses,
|
|
181
|
-
resources: mockResources
|
|
195
|
+
resources: mockResources,
|
|
196
|
+
...mockExtraData
|
|
182
197
|
},
|
|
183
198
|
chapters: {
|
|
184
199
|
files: basicFiles,
|
|
@@ -186,7 +201,8 @@ const sources: { [key: string]: PlaybackObject } = {
|
|
|
186
201
|
chapters: mockChapters,
|
|
187
202
|
subtitles: emptySubtitles,
|
|
188
203
|
localCacheAddresses: emptyLocalCacheAddresses,
|
|
189
|
-
resources: mockResources
|
|
204
|
+
resources: mockResources,
|
|
205
|
+
...mockExtraData
|
|
190
206
|
},
|
|
191
207
|
vertical: {
|
|
192
208
|
files: {
|
|
@@ -200,7 +216,8 @@ const sources: { [key: string]: PlaybackObject } = {
|
|
|
200
216
|
chapters: mockChapters,
|
|
201
217
|
subtitles: emptySubtitles,
|
|
202
218
|
localCacheAddresses: emptyLocalCacheAddresses,
|
|
203
|
-
resources: mockResources
|
|
219
|
+
resources: mockResources,
|
|
220
|
+
...mockExtraData
|
|
204
221
|
},
|
|
205
222
|
error: {
|
|
206
223
|
files: {
|
|
@@ -216,7 +233,8 @@ const sources: { [key: string]: PlaybackObject } = {
|
|
|
216
233
|
chapters: emptyChapters,
|
|
217
234
|
subtitles: emptySubtitles,
|
|
218
235
|
localCacheAddresses: emptyLocalCacheAddresses,
|
|
219
|
-
resources: mockResources
|
|
236
|
+
resources: mockResources,
|
|
237
|
+
...mockExtraData
|
|
220
238
|
},
|
|
221
239
|
multipleQualities: {
|
|
222
240
|
files: multipleFiles,
|
|
@@ -224,7 +242,8 @@ const sources: { [key: string]: PlaybackObject } = {
|
|
|
224
242
|
chapters: emptyChapters,
|
|
225
243
|
subtitles: emptySubtitles,
|
|
226
244
|
localCacheAddresses: emptyLocalCacheAddresses,
|
|
227
|
-
resources: mockResources
|
|
245
|
+
resources: mockResources,
|
|
246
|
+
...mockExtraData
|
|
228
247
|
},
|
|
229
248
|
poster: {
|
|
230
249
|
files: basicFiles,
|
|
@@ -233,7 +252,8 @@ const sources: { [key: string]: PlaybackObject } = {
|
|
|
233
252
|
posterUrl: 'https://image.api.stg.cvnet.io/v2/thumbnails/Q229lo',
|
|
234
253
|
subtitles: emptySubtitles,
|
|
235
254
|
localCacheAddresses: emptyLocalCacheAddresses,
|
|
236
|
-
resources: mockResources
|
|
255
|
+
resources: mockResources,
|
|
256
|
+
...mockExtraData
|
|
237
257
|
},
|
|
238
258
|
everything: {
|
|
239
259
|
files: multipleFiles,
|
|
@@ -242,7 +262,8 @@ const sources: { [key: string]: PlaybackObject } = {
|
|
|
242
262
|
posterUrl: 'https://image.api.stg.cvnet.io/v2/thumbnails/Q229lo',
|
|
243
263
|
subtitles: multipleSubtitles,
|
|
244
264
|
localCacheAddresses: emptyLocalCacheAddresses,
|
|
245
|
-
resources: mockResources
|
|
265
|
+
resources: mockResources,
|
|
266
|
+
...mockExtraData
|
|
246
267
|
},
|
|
247
268
|
multipleSubtitles: {
|
|
248
269
|
files: basicFiles,
|
|
@@ -250,7 +271,8 @@ const sources: { [key: string]: PlaybackObject } = {
|
|
|
250
271
|
chapters: emptyChapters,
|
|
251
272
|
subtitles: multipleSubtitles,
|
|
252
273
|
localCacheAddresses: emptyLocalCacheAddresses,
|
|
253
|
-
resources: mockResources
|
|
274
|
+
resources: mockResources,
|
|
275
|
+
...mockExtraData
|
|
254
276
|
},
|
|
255
277
|
multipleTracksWithDefault: {
|
|
256
278
|
files: basicFiles,
|
|
@@ -276,7 +298,8 @@ const sources: { [key: string]: PlaybackObject } = {
|
|
|
276
298
|
}]
|
|
277
299
|
},
|
|
278
300
|
localCacheAddresses: emptyLocalCacheAddresses,
|
|
279
|
-
resources: mockResources
|
|
301
|
+
resources: mockResources,
|
|
302
|
+
...mockExtraData
|
|
280
303
|
},
|
|
281
304
|
interactive: {
|
|
282
305
|
files: basicFiles,
|
|
@@ -285,7 +308,8 @@ const sources: { [key: string]: PlaybackObject } = {
|
|
|
285
308
|
additionalData: interactive,
|
|
286
309
|
subtitles: emptySubtitles,
|
|
287
310
|
localCacheAddresses: emptyLocalCacheAddresses,
|
|
288
|
-
resources: mockResources
|
|
311
|
+
resources: mockResources,
|
|
312
|
+
...mockExtraData
|
|
289
313
|
},
|
|
290
314
|
clip: {
|
|
291
315
|
files: basicFiles,
|
|
@@ -297,7 +321,8 @@ const sources: { [key: string]: PlaybackObject } = {
|
|
|
297
321
|
},
|
|
298
322
|
subtitles: emptySubtitles,
|
|
299
323
|
localCacheAddresses: emptyLocalCacheAddresses,
|
|
300
|
-
resources: mockResources
|
|
324
|
+
resources: mockResources,
|
|
325
|
+
...mockExtraData
|
|
301
326
|
},
|
|
302
327
|
localcache: {
|
|
303
328
|
files: multipleFiles,
|
|
@@ -309,7 +334,8 @@ const sources: { [key: string]: PlaybackObject } = {
|
|
|
309
334
|
name: 'test',
|
|
310
335
|
playbackProfile: '1080'
|
|
311
336
|
}],
|
|
312
|
-
resources: mockResources
|
|
337
|
+
resources: mockResources,
|
|
338
|
+
...mockExtraData
|
|
313
339
|
}
|
|
314
340
|
};
|
|
315
341
|
|