@clickview/player 0.0.6-dev.1 → 0.0.6-dev.3
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/dist/en.json +1 -1
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +0 -1
- package/dist/libs/common/src/backbone/core/BaseError.d.ts +8 -0
- package/dist/libs/common/src/backbone/interfaces/StickitBinding.d.ts +0 -5
- package/dist/libs/shared/src/apps/notifications/enums/NotificationType.d.ts +2 -1
- package/dist/libs/shared/src/apps/search/reducers/FilterReducer.d.ts +2 -2
- package/dist/libs/shared/src/constants/AppVariables.d.ts +0 -1
- package/dist/libs/shared/src/enums/SettingName.d.ts +1 -0
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +4 -4
- package/dist/libs/shared/src/images/svg/actions/index.d.ts +3 -1
- package/dist/libs/shared/src/images/svg/objects/index.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/FavouriteVideoFunc.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/app-variables/BaseNotificationsAppVariables.d.ts +4 -3
- package/dist/libs/shared/src/interfaces/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +1 -1
- package/dist/libs/shared/src/interfaces/requests/index.d.ts +0 -1
- package/dist/player-app.css +2 -2
- package/dist/player-app.js +3 -3
- package/dist/projects/player/src/components/cog-button/cog-button.d.ts +7 -4
- package/dist/projects/player/src/players/base-player.d.ts +0 -1
- package/dist/projects/player/src/players/player.d.ts +1 -0
- package/dist/projects/player/src/players/reports/reports-player.d.ts +14 -0
- package/dist/projects/player/src/plugins/engagement-overlay-plugin/components/engagement-overlay.d.ts +1 -0
- package/dist/projects/player/src/plugins/engagement-overlay-plugin/engagement-overlay-plugin.d.ts +30 -0
- package/dist/projects/player/src/plugins/next-video-plugin/next-video-plugin.d.ts +1 -0
- package/dist/projects/player/src/react/ReportsPlayer.d.ts +3 -0
- package/dist/projects/player/src/services/analytics-service.d.ts +1 -1
- package/package.json +5 -4
- package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +0 -42
- package/dist/libs/shared/src/images/svg/player/index.d.ts +0 -14
- package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +0 -3
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { CollapsibleComponent } from 'projects/player/interfaces/CollapsibleComponent';
|
|
2
2
|
import videojs, { VideoJsPlayer } from 'video.js';
|
|
3
|
-
import 'projects/player/components/next-video-menu-item/next-video-menu-item';
|
|
4
3
|
import './cog-button.scss';
|
|
5
4
|
declare const MenuItem: {
|
|
6
5
|
new (player: VideoJsPlayer, options?: videojs.MenuItemOptions): videojs.MenuItem;
|
|
7
6
|
prototype: videojs.MenuItem;
|
|
8
7
|
};
|
|
8
|
+
interface AdditionalMenuItem {
|
|
9
|
+
index: number;
|
|
10
|
+
ctor: typeof MenuItem;
|
|
11
|
+
}
|
|
9
12
|
interface CogMenuItemOptions extends videojs.ComponentOptions {
|
|
10
13
|
item: CollapsibleComponent;
|
|
11
14
|
}
|
|
12
|
-
declare class CogMenuItem extends MenuItem {
|
|
15
|
+
export declare class CogMenuItem extends MenuItem {
|
|
13
16
|
options_: CogMenuItemOptions;
|
|
14
17
|
constructor(player: VideoJsPlayer, options: CogMenuItemOptions);
|
|
15
18
|
handleClick(event: videojs.EventTarget.Event): void;
|
|
@@ -24,7 +27,7 @@ interface CogButtonOptions extends videojs.ComponentOptions {
|
|
|
24
27
|
}
|
|
25
28
|
export declare class CogButton extends MenuButton {
|
|
26
29
|
options_: CogButtonOptions;
|
|
27
|
-
private
|
|
30
|
+
private additionalItems;
|
|
28
31
|
constructor(player: VideoJsPlayer, options: CogButtonOptions);
|
|
29
32
|
buildWrapperCSSClass(): string;
|
|
30
33
|
buildCSSClass(): string;
|
|
@@ -35,6 +38,6 @@ export declare class CogButton extends MenuButton {
|
|
|
35
38
|
*/
|
|
36
39
|
createItems(): CogMenuItem[];
|
|
37
40
|
update(): void;
|
|
38
|
-
|
|
41
|
+
addItem(item: AdditionalMenuItem): void;
|
|
39
42
|
}
|
|
40
43
|
export {};
|
|
@@ -8,6 +8,7 @@ import 'projects/player/plugins/favourite-plugin/favourite-plugin';
|
|
|
8
8
|
import { PlaybackObject } from 'projects/player/interfaces/models/PlaybackObject';
|
|
9
9
|
import { NextVideo } from 'projects/player/interfaces/NextVideo';
|
|
10
10
|
export interface PlayerOptions extends BasePlayerOptions {
|
|
11
|
+
showResources?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare class Player extends BasePlayer {
|
|
13
14
|
protected options: PlayerOptions;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BasePlayer, BasePlayerOptions } from 'projects/player/players/base-player';
|
|
2
|
+
import 'projects/player/plugins/engagement-overlay-plugin/engagement-overlay-plugin';
|
|
3
|
+
import { AnalyticsPlayerType } from 'projects/player/services/analytics-service';
|
|
4
|
+
import './reports-player.scss';
|
|
5
|
+
export interface ReportsPlayerOptions extends BasePlayerOptions {
|
|
6
|
+
heatMap: number[];
|
|
7
|
+
}
|
|
8
|
+
export declare class ReportsPlayer extends BasePlayer {
|
|
9
|
+
protected options: ReportsPlayerOptions;
|
|
10
|
+
constructor(id: string | Element, options: ReportsPlayerOptions);
|
|
11
|
+
protected getPlayerClassName(): string;
|
|
12
|
+
protected configurePlugins(): void;
|
|
13
|
+
protected getAnalyticsPlayerType(): AnalyticsPlayerType;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './engagement-overlay.scss';
|
package/dist/projects/player/src/plugins/engagement-overlay-plugin/engagement-overlay-plugin.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import videojs, { VideoJsPlayer } from 'video.js';
|
|
2
|
+
import 'projects/player/plugins/engagement-overlay-plugin/components/engagement-overlay';
|
|
3
|
+
declare const Plugin: {
|
|
4
|
+
new (player: VideoJsPlayer, options?: any): videojs.Plugin;
|
|
5
|
+
prototype: videojs.Plugin;
|
|
6
|
+
BASE_PLUGIN_NAME: string;
|
|
7
|
+
deregisterPlugin(name: string): void;
|
|
8
|
+
getPlugin(name: string): any;
|
|
9
|
+
getPluginVersion(name: string): string;
|
|
10
|
+
getPlugins(names?: string[]): {
|
|
11
|
+
[name: string]: videojs.Plugin;
|
|
12
|
+
};
|
|
13
|
+
isBasic(plugin: string | (() => any)): boolean;
|
|
14
|
+
registerPlugin<T, K>(name: string, plugin: (this: VideoJsPlayer, ...options: K[]) => T): (...options: K[]) => T;
|
|
15
|
+
registerPlugin<T_1 extends any>(name: string, plugin: T_1): () => T_1;
|
|
16
|
+
};
|
|
17
|
+
interface EngagementOverlayPluginOptions {
|
|
18
|
+
heatMap: number[];
|
|
19
|
+
}
|
|
20
|
+
declare class EngagementOverlayPlugin extends Plugin {
|
|
21
|
+
private options;
|
|
22
|
+
constructor(player: VideoJsPlayer, options: EngagementOverlayPluginOptions);
|
|
23
|
+
private initialize;
|
|
24
|
+
}
|
|
25
|
+
declare module 'video.js' {
|
|
26
|
+
interface VideoJsPlayer {
|
|
27
|
+
engagementOverlayPlugin(options?: EngagementOverlayPluginOptions): EngagementOverlayPlugin;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import videojs, { VideoJsPlayer } from 'video.js';
|
|
2
2
|
import { NextVideo } from 'projects/player/interfaces/NextVideo';
|
|
3
3
|
import 'projects/player/plugins/next-video-plugin/components/up-next/up-next';
|
|
4
|
+
import 'projects/player/components/next-video-menu-item/next-video-menu-item';
|
|
4
5
|
declare const Plugin: {
|
|
5
6
|
new (player: VideoJsPlayer, options?: any): videojs.Plugin;
|
|
6
7
|
prototype: videojs.Plugin;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RegionName } from 'libs/analytics/enums/RegionName';
|
|
2
2
|
import { RegionalUrl, AnalyticsOptions, HashObject } from 'libs/analytics/interfaces';
|
|
3
3
|
import { ProgressEvent } from 'projects/player/plugins/progress-reporter-plugin/progress-reporter-plugin';
|
|
4
|
-
export declare type AnalyticsPlayerType = 'player' | 'interactive-player' | 'create-clip-player';
|
|
4
|
+
export declare type AnalyticsPlayerType = 'player' | 'interactive-player' | 'create-clip-player' | 'reports-player';
|
|
5
5
|
interface AnalyticsServiceOptions {
|
|
6
6
|
collectionApiUrls: RegionalUrl;
|
|
7
7
|
collectionApiClientId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickview/player",
|
|
3
|
-
"version": "0.0.6-dev.
|
|
3
|
+
"version": "0.0.6-dev.3",
|
|
4
4
|
"description": "ClickView Player",
|
|
5
5
|
"main": "dist/player-app.js",
|
|
6
6
|
"scripts": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/core": "7.11.6",
|
|
29
29
|
"@clickview/eslint-config": "1.0.1",
|
|
30
|
-
"@clickview/player-font": "0.0.
|
|
31
|
-
"@clickview/tooling": "0.0.24-dev.
|
|
30
|
+
"@clickview/player-font": "0.0.12",
|
|
31
|
+
"@clickview/tooling": "0.0.24-dev.5",
|
|
32
32
|
"@storybook/react": "6.0.26",
|
|
33
33
|
"@types/chromecast-caf-sender": "1.0.3",
|
|
34
34
|
"@types/cropperjs": "1.3.0",
|
|
@@ -42,11 +42,12 @@
|
|
|
42
42
|
"webpack-dev-server": "3.11.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@clickview/styles": "1.0.17-dev.
|
|
45
|
+
"@clickview/styles": "1.0.17-dev.5",
|
|
46
46
|
"@microsoft/signalr": "5.0.2",
|
|
47
47
|
"cropperjs": "1.5.6",
|
|
48
48
|
"draft-convert": "2.1.10",
|
|
49
49
|
"draft-js": "0.11.7",
|
|
50
|
+
"highcharts": "9.1.0",
|
|
50
51
|
"keycode": "2.2.0",
|
|
51
52
|
"node-polyglot": "2.3.0",
|
|
52
53
|
"react-draft-wysiwyg": "1.14.5",
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { HashObject, Video } from 'libs/analytics/interfaces';
|
|
2
|
-
export interface VideoWatchAnalyticsEvent {
|
|
3
|
-
model: Video;
|
|
4
|
-
playbackStatus: PlaybackStatus;
|
|
5
|
-
}
|
|
6
|
-
export interface PlaybackStatus {
|
|
7
|
-
position: number;
|
|
8
|
-
chapter: number;
|
|
9
|
-
totalDuration: number;
|
|
10
|
-
totalWatched: number;
|
|
11
|
-
hasStarted?: boolean;
|
|
12
|
-
}
|
|
13
|
-
interface BaseVideoData {
|
|
14
|
-
id: string;
|
|
15
|
-
title: string;
|
|
16
|
-
trackingCode: string;
|
|
17
|
-
duration: number;
|
|
18
|
-
}
|
|
19
|
-
interface BaseAssocData {
|
|
20
|
-
id: string;
|
|
21
|
-
title?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface VideoAnalyticsPayload {
|
|
24
|
-
video: BaseVideoData;
|
|
25
|
-
rating?: string;
|
|
26
|
-
series?: BaseAssocData;
|
|
27
|
-
folder?: BaseAssocData;
|
|
28
|
-
owner?: BaseAssocData;
|
|
29
|
-
playlist?: BaseAssocData;
|
|
30
|
-
playbackStatus?: PlaybackStatus;
|
|
31
|
-
}
|
|
32
|
-
export declare const VideoDataFormatHelper: {
|
|
33
|
-
getVideoData(options: VideoWatchAnalyticsEvent): VideoAnalyticsPayload;
|
|
34
|
-
/**
|
|
35
|
-
* Map to the same properties recorded in Online.
|
|
36
|
-
* @see _toLogMasterVideo() in AnalyticsService in Online
|
|
37
|
-
*
|
|
38
|
-
* TODO: Video origin and user channel logging - both of these need to be re-worked properly.
|
|
39
|
-
*/
|
|
40
|
-
getLegacyVideoData(options: VideoWatchAnalyticsEvent): HashObject;
|
|
41
|
-
};
|
|
42
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import Quality240 from './quality-240.svg';
|
|
2
|
-
import Quality480 from './quality-480.svg';
|
|
3
|
-
import QualityHD from './quality-hd.svg';
|
|
4
|
-
import CloseCaption from './close-caption.svg';
|
|
5
|
-
import Contract from './contract.svg';
|
|
6
|
-
import FullScreen from './full-screen.svg';
|
|
7
|
-
import Mute from './mute.svg';
|
|
8
|
-
import Next from './next.svg';
|
|
9
|
-
import Play from './play.svg';
|
|
10
|
-
import PlayCircle from './play-circle.svg';
|
|
11
|
-
import Pause from './pause.svg';
|
|
12
|
-
import Previous from './previous.svg';
|
|
13
|
-
import Volume from './volume.svg';
|
|
14
|
-
export { Quality240, Quality480, QualityHD, CloseCaption, Contract, FullScreen, Mute, Next, Play, PlayCircle, Pause, Previous, Volume };
|