@clickview/player 0.0.8-dev.4 → 0.0.8-dev.5
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/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +2 -1
- package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +10 -7
- package/dist/libs/shared/src/components/actions/Actions.d.ts +1 -1
- package/dist/libs/shared/src/components/app-link/AppLink.d.ts +1 -0
- package/dist/libs/shared/src/components/tooltip/Tooltip.d.ts +1 -0
- package/dist/libs/shared/src/components/widgets/items/FixedWidgetItemProps.d.ts +18 -0
- package/dist/libs/shared/src/components/widgets/items/resource-widget-item/ResourceWidgetItem.d.ts +2 -8
- package/dist/libs/shared/src/enums/ContentRegion.d.ts +8 -0
- package/dist/libs/shared/src/enums/InstanceRegion.d.ts +6 -0
- package/dist/libs/shared/src/enums/ShareLinkPrivacy.d.ts +4 -0
- package/dist/libs/shared/src/enums/ShareLinkStatus.d.ts +4 -0
- package/dist/libs/shared/src/enums/ShareType.d.ts +4 -0
- package/dist/libs/shared/src/enums/WidgetContents.d.ts +1 -0
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +4 -1
- package/dist/libs/shared/src/images/svg/actions/index.d.ts +2 -1
- package/dist/libs/shared/src/images/svg/objects/index.d.ts +3 -1
- package/dist/libs/shared/src/interfaces/DateRange.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/collections/DirectShareCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/PointOfInterestCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/BaseShareObject.d.ts +11 -0
- package/dist/libs/shared/src/interfaces/models/ContentRegionObject.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/Customer.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/models/DirectShare.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/PointOfInterest.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/ShareLink.d.ts +14 -0
- package/dist/libs/shared/src/interfaces/models/ShareRecipient.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/UnionShareObject.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/User.d.ts +4 -2
- package/dist/libs/shared/src/interfaces/models/Video.d.ts +2 -4
- package/dist/libs/shared/src/interfaces/models/index.d.ts +6 -0
- package/dist/player-app.css +2 -0
- package/dist/player-app.js +18 -18
- package/dist/projects/player/src/components/time-tooltip/time-tooltip.d.ts +2 -0
- package/dist/projects/player/src/interfaces/models/PlaybackObject.d.ts +1 -0
- package/dist/projects/player/src/players/player.d.ts +3 -0
- package/dist/projects/player/src/plugins/engagement-overlay-plugin/engagement-overlay-plugin.d.ts +1 -0
- package/dist/projects/player/src/plugins/points-of-interest-plugin/components/point-of-interest-indicator/point-of-interest-indicator.d.ts +83 -0
- package/dist/projects/player/src/plugins/points-of-interest-plugin/points-of-interest-plugin.d.ts +36 -0
- package/dist/projects/player/src/services/analytics-service.d.ts +1 -0
- package/dist/projects/player/src/utils/getBufferedEnd.d.ts +2 -0
- package/dist/projects/player/src/utils/track-helper.d.ts +1 -1
- package/package.json +3 -3
|
@@ -8,8 +8,10 @@ export declare class TimeTooltip extends BaseTimeToolTip {
|
|
|
8
8
|
private track_;
|
|
9
9
|
private time_;
|
|
10
10
|
private chapter_;
|
|
11
|
+
private hasCustomChapterText;
|
|
11
12
|
constructor(player: VideoJsPlayer, options?: videojs.ComponentOptions);
|
|
12
13
|
createEl(): HTMLDivElement;
|
|
13
14
|
updateTime(time: number): void;
|
|
15
|
+
setCustomChapterText(text?: string): void;
|
|
14
16
|
}
|
|
15
17
|
export {};
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { BasePlayer, BasePlayerOptions } from './base-player';
|
|
2
|
+
import { PointOfInterest } from 'libs/shared/interfaces';
|
|
2
3
|
import 'projects/player/plugins/clip-plugin/clip-plugin';
|
|
3
4
|
import 'projects/player/plugins/next-video-plugin/next-video-plugin';
|
|
4
5
|
import 'projects/player/plugins/create-clip-button-plugin/create-clip-button-plugin';
|
|
5
6
|
import 'projects/player/plugins/resources-plugin/resources-plugin';
|
|
6
7
|
import 'projects/player/plugins/picture-in-picture-plugin/picture-in-picture-plugin';
|
|
7
8
|
import 'projects/player/plugins/favourite-plugin/favourite-plugin';
|
|
9
|
+
import 'projects/player/plugins/points-of-interest-plugin/points-of-interest-plugin';
|
|
8
10
|
import { PlaybackObject } from 'projects/player/interfaces/models/PlaybackObject';
|
|
9
11
|
import { NextVideo } from 'projects/player/interfaces/NextVideo';
|
|
10
12
|
export interface PlayerOptions extends BasePlayerOptions {
|
|
11
13
|
showResources?: boolean;
|
|
14
|
+
pointsOfInterest?: PointOfInterest[];
|
|
12
15
|
}
|
|
13
16
|
export declare class Player extends BasePlayer {
|
|
14
17
|
protected options: PlayerOptions;
|
package/dist/projects/player/src/plugins/engagement-overlay-plugin/engagement-overlay-plugin.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ declare class EngagementOverlayPlugin extends Plugin {
|
|
|
25
25
|
constructor(player: VideoJsPlayer, options: EngagementOverlayPluginOptions);
|
|
26
26
|
private initialize;
|
|
27
27
|
toggleOverlay(show: boolean): void;
|
|
28
|
+
private hasHeatMapData;
|
|
28
29
|
}
|
|
29
30
|
declare module 'video.js' {
|
|
30
31
|
interface VideoJsPlayer {
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import videojs, { VideoJsPlayer } from 'video.js';
|
|
2
|
+
import { PointOfInterest } from 'libs/shared/interfaces';
|
|
3
|
+
import './point-of-interest-indicator.scss';
|
|
4
|
+
declare const Component: {
|
|
5
|
+
new (player: VideoJsPlayer, options?: videojs.ComponentOptions, ready?: videojs.Component.ReadyCallback): videojs.Component;
|
|
6
|
+
prototype: videojs.Component;
|
|
7
|
+
getComponent(name: "Button" | "button"): {
|
|
8
|
+
new (player: VideoJsPlayer, options?: videojs.ComponentOptions): videojs.Button;
|
|
9
|
+
prototype: videojs.Button;
|
|
10
|
+
};
|
|
11
|
+
getComponent(name: "ClickableComponent" | "clickablecomponent"): {
|
|
12
|
+
new (player: VideoJsPlayer, options?: videojs.ComponentOptions): videojs.ClickableComponent;
|
|
13
|
+
prototype: videojs.ClickableComponent;
|
|
14
|
+
};
|
|
15
|
+
getComponent(name: "ModalDialog" | "modaldialog"): {
|
|
16
|
+
new (player: VideoJsPlayer, options?: videojs.ModalDialogOptions): videojs.ModalDialog;
|
|
17
|
+
prototype: videojs.ModalDialog;
|
|
18
|
+
};
|
|
19
|
+
getComponent(name: "Menu" | "menu"): {
|
|
20
|
+
new (player: VideoJsPlayer, options?: videojs.MenuOptions): videojs.Menu;
|
|
21
|
+
prototype: videojs.Menu;
|
|
22
|
+
};
|
|
23
|
+
getComponent(name: "MenuButton" | "menubutton"): {
|
|
24
|
+
new (player: VideoJsPlayer, options?: videojs.MenuButtonOptions): videojs.MenuButton;
|
|
25
|
+
prototype: videojs.MenuButton;
|
|
26
|
+
};
|
|
27
|
+
getComponent(name: "MenuItem" | "menuitem"): {
|
|
28
|
+
new (player: VideoJsPlayer, options?: videojs.MenuItemOptions): videojs.MenuItem;
|
|
29
|
+
prototype: videojs.MenuItem;
|
|
30
|
+
};
|
|
31
|
+
getComponent(name: "MouseTimeDisplay" | "mouseTimeDisplay"): {
|
|
32
|
+
new (player: VideoJsPlayer, options?: videojs.ComponentOptions): videojs.MouseTimeDisplay;
|
|
33
|
+
prototype: videojs.MouseTimeDisplay;
|
|
34
|
+
};
|
|
35
|
+
getComponent(name: "Spacer" | "spacer"): {
|
|
36
|
+
new (player: VideoJsPlayer, options?: videojs.ComponentOptions, ready?: videojs.Component.ReadyCallback): videojs.Spacer;
|
|
37
|
+
prototype: videojs.Spacer;
|
|
38
|
+
};
|
|
39
|
+
getComponent(name: "Player" | "player"): {
|
|
40
|
+
new (player: VideoJsPlayer, options?: import("video.js").VideoJsPlayerOptions): VideoJsPlayer;
|
|
41
|
+
prototype: VideoJsPlayer;
|
|
42
|
+
getTagSettings(tag: Element): any;
|
|
43
|
+
};
|
|
44
|
+
getComponent(name: "timeTooltip" | "TimeTooltip"): {
|
|
45
|
+
new (player: VideoJsPlayer, options?: videojs.ComponentOptions): videojs.TimeToolTip;
|
|
46
|
+
prototype: videojs.TimeToolTip;
|
|
47
|
+
};
|
|
48
|
+
getComponent(name: string): any;
|
|
49
|
+
registerComponent(name: string, ComponentToRegister: any): any;
|
|
50
|
+
};
|
|
51
|
+
interface PointOfInterestIndicatorOptions extends videojs.ComponentOptions {
|
|
52
|
+
pointOfInterest: PointOfInterest;
|
|
53
|
+
}
|
|
54
|
+
export declare class PointOfInterestIndicator extends Component {
|
|
55
|
+
private el_;
|
|
56
|
+
options_: PointOfInterestIndicatorOptions;
|
|
57
|
+
private pointOfInterest;
|
|
58
|
+
private hasBuffered;
|
|
59
|
+
private hasPlayed;
|
|
60
|
+
constructor(player: VideoJsPlayer, options: PointOfInterestIndicatorOptions);
|
|
61
|
+
initialize(): void;
|
|
62
|
+
buildCSSClass(): string;
|
|
63
|
+
createEl(tagName?: string, properties?: any, attributes?: any): Element;
|
|
64
|
+
private bindListeners;
|
|
65
|
+
private getPointOfInterestTime;
|
|
66
|
+
private setPosition;
|
|
67
|
+
updateBuffered(bufferEnd: number): void;
|
|
68
|
+
updatePlaybackProgress(currentTime: number): void;
|
|
69
|
+
/**
|
|
70
|
+
* We want the POI description to be displayed in the TimeTooltip when the user
|
|
71
|
+
* hovers over a POI.
|
|
72
|
+
* Because we don't know the exact time range on the seekbar covered by a POI indicator,
|
|
73
|
+
* TimeTooltip can't use the current time to determine the active POI cue the same way
|
|
74
|
+
* that it does for chapters. So instead we use the mouse events on this component and
|
|
75
|
+
* set it manually.
|
|
76
|
+
*/
|
|
77
|
+
private onMouseOver;
|
|
78
|
+
private onMouseLeave;
|
|
79
|
+
private setTimeTooltipText;
|
|
80
|
+
private clearTimeTooltipText;
|
|
81
|
+
private getTimeTooltip;
|
|
82
|
+
}
|
|
83
|
+
export {};
|
package/dist/projects/player/src/plugins/points-of-interest-plugin/points-of-interest-plugin.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import videojs, { VideoJsPlayer } from 'video.js';
|
|
2
|
+
import { PointOfInterest } from 'libs/shared/interfaces';
|
|
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 PointsOfInterestPluginOptions {
|
|
18
|
+
pointsOfInterest: PointOfInterest[];
|
|
19
|
+
}
|
|
20
|
+
export declare class PointsOfInterestPlugin extends Plugin {
|
|
21
|
+
private pointsOfInterest;
|
|
22
|
+
private pointOfInterestIndicators;
|
|
23
|
+
constructor(player: VideoJsPlayer, options: PointsOfInterestPluginOptions);
|
|
24
|
+
private initialize;
|
|
25
|
+
private bindListeners;
|
|
26
|
+
private setupTrack;
|
|
27
|
+
private createPointOfInterestIndicators;
|
|
28
|
+
private updateBuffered;
|
|
29
|
+
private updatePlaybackProgress;
|
|
30
|
+
}
|
|
31
|
+
declare module 'video.js' {
|
|
32
|
+
interface VideoJsPlayer {
|
|
33
|
+
pointsOfInterestPlugin(options: PointsOfInterestPluginOptions): void;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VideoJsPlayer } from 'video.js';
|
|
2
2
|
declare type TrackKind = 'metadata' | 'chapters';
|
|
3
|
-
declare type TrackLabel = 'interactive' | 'thumbnails' | false;
|
|
3
|
+
declare type TrackLabel = 'interactive' | 'thumbnails' | 'pointsofinterest' | false;
|
|
4
4
|
export declare const TrackHelper: {
|
|
5
5
|
useTrack(player: VideoJsPlayer, kind: TrackKind, label: TrackLabel, callback: (track: TextTrack) => void): void;
|
|
6
6
|
getCurrentTextTrack(player: VideoJsPlayer): TextTrack;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickview/player",
|
|
3
|
-
"version": "0.0.8-dev.
|
|
3
|
+
"version": "0.0.8-dev.5",
|
|
4
4
|
"description": "ClickView Player",
|
|
5
5
|
"main": "dist/player-app.js",
|
|
6
6
|
"scripts": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@babel/core": "7.11.6",
|
|
29
29
|
"@clickview/eslint-config": "1.0.1",
|
|
30
30
|
"@clickview/player-font": "0.0.12",
|
|
31
|
-
"@clickview/tooling": "0.0.26-dev.
|
|
31
|
+
"@clickview/tooling": "0.0.26-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,7 +42,7 @@
|
|
|
42
42
|
"webpack-dev-server": "3.11.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@clickview/styles": "1.0.19-dev.
|
|
45
|
+
"@clickview/styles": "1.0.19-dev.5",
|
|
46
46
|
"@microsoft/signalr": "5.0.2",
|
|
47
47
|
"cropperjs": "1.5.6",
|
|
48
48
|
"draft-convert": "2.1.10",
|