@clickview/player 0.0.8-dev.5 → 0.0.8-dev.7
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 +2 -0
- package/dist/libs/common/src/react/services/EventsService.d.ts +16 -0
- package/dist/libs/shared/src/components/actions/ActionButton.d.ts +1 -0
- package/dist/libs/shared/src/components/actions/Actions.d.ts +1 -0
- package/dist/libs/shared/src/components/icon-button/IconButton.d.ts +1 -0
- package/dist/libs/shared/src/components/interaction-answers/multiple-choice/MultipleChoiceInteractionAnswers.d.ts +2 -0
- package/dist/libs/shared/src/components/interaction-answers/true-or-false/TrueOrFalseInteractionAnswers.d.ts +3 -0
- package/dist/libs/shared/src/components/interaction-response/InteractionResponse.d.ts +19 -0
- package/dist/libs/shared/src/components/interaction-response/InteractionResponseCorrectness.d.ts +7 -0
- package/dist/libs/shared/src/components/interaction-response/InteractionStudentDetailsHeader.d.ts +10 -0
- package/dist/libs/shared/src/components/interaction-response/MarkResponse.d.ts +12 -0
- package/dist/libs/shared/src/components/interaction-response/response-types/MissingWordResponse.d.ts +3 -0
- package/dist/libs/shared/src/components/interaction-response/response-types/MultipleChoiceResponse.d.ts +3 -0
- package/dist/libs/shared/src/components/interaction-response/response-types/NoResponse.d.ts +2 -0
- package/dist/libs/shared/src/components/interaction-response/response-types/ResponseComponentLookup.d.ts +15 -0
- package/dist/libs/shared/src/components/interaction-response/response-types/ShortAnswerResponse.d.ts +3 -0
- package/dist/libs/shared/src/components/interaction-response/response-types/TrueOrFalseResponse.d.ts +3 -0
- package/dist/libs/shared/src/components/interactive-questions/InteractionLabel.d.ts +1 -0
- package/dist/libs/shared/src/components/widgets/items/FixedWidgetItemProps.d.ts +2 -2
- package/dist/libs/shared/src/enums/ShareActivityStatus.d.ts +5 -0
- package/dist/libs/shared/src/enums/ShareType.d.ts +2 -2
- package/dist/libs/shared/src/enums/TagType.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/SetActivityStatusFunc.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/DirectShareCollection.d.ts +2 -3
- package/dist/libs/shared/src/interfaces/collections/UnionShareObjectCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/collections/primitives/BasePaginatedCollection.d.ts +1 -1
- package/dist/libs/shared/src/interfaces/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/models/DirectShare.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/Tag.d.ts +5 -0
- package/dist/libs/shared/src/utils/InteractiveCorrectnessHelper.d.ts +3 -1
- package/dist/libs/shared/src/utils/InteractiveHelper.d.ts +12 -0
- package/dist/libs/shared/src/utils/UserHelper.d.ts +1 -0
- package/dist/player-app.css +6 -4
- package/dist/player-app.js +14 -14
- package/dist/projects/player/src/components/mouse-time-display/mouse-time-display.d.ts +13 -0
- package/dist/projects/player/src/players/interactive-player.d.ts +4 -0
- package/dist/projects/player/src/players/player.d.ts +3 -0
- package/dist/projects/player/src/plugins/activity-status-plugin/activity-status-plugin.d.ts +32 -0
- package/dist/projects/player/src/plugins/activity-status-plugin/components/activity-status-button.d.ts +20 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/InteractiveSummaryWrapper.d.ts +5 -1
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/getstudentAttempts.d.ts +13 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/interaction-summary/interaction-summary.d.ts +15 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/interactive-summary.d.ts +5 -2
- package/dist/projects/player/src/plugins/interactive-plugin/interactive-plugin.d.ts +2 -0
- package/dist/projects/player/src/plugins/interactive-plugin/utils/helpers.d.ts +3 -0
- package/dist/projects/player/src/plugins/points-of-interest-plugin/components/point-of-interest-indicator/point-of-interest-indicator.d.ts +16 -0
- package/dist/projects/player/src/plugins/points-of-interest-plugin/components/points-of-interest-menu-item/points-of-interest-menu-item.d.ts +31 -0
- package/dist/projects/player/src/plugins/points-of-interest-plugin/points-of-interest-plugin.d.ts +5 -3
- package/package.json +3 -3
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
import videojs, { VideoJsPlayer } from 'video.js';
|
|
1
2
|
import 'projects/player/components/time-tooltip/time-tooltip';
|
|
2
3
|
import 'projects/player/components/thumbnail-display/thumbnail-display';
|
|
3
4
|
import './mouse-time-display.scss';
|
|
5
|
+
declare const BaseMouseTimeDisplay: {
|
|
6
|
+
new (player: VideoJsPlayer, options?: videojs.ComponentOptions): videojs.MouseTimeDisplay;
|
|
7
|
+
prototype: videojs.MouseTimeDisplay;
|
|
8
|
+
};
|
|
9
|
+
export declare class MouseTimeDisplay extends BaseMouseTimeDisplay {
|
|
10
|
+
private el_;
|
|
11
|
+
constructor(player: VideoJsPlayer, options: videojs.ComponentOptions);
|
|
12
|
+
update(seekBarRect: ClientRect, seekBarPoint: number): void;
|
|
13
|
+
forceShow(): void;
|
|
14
|
+
removeForceShow(): void;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { HtmlPortalNode } from 'react-reverse-portal';
|
|
2
2
|
import { HashObject } from 'libs/analytics/interfaces';
|
|
3
3
|
import { CurrentUser } from 'libs/shared/interfaces';
|
|
4
|
+
import { ShareActivityStatus } from 'libs/shared/enums/ShareActivityStatus';
|
|
4
5
|
import 'projects/player/plugins/favourite-plugin/favourite-plugin';
|
|
6
|
+
import 'projects/player/plugins/activity-status-plugin/activity-status-plugin';
|
|
5
7
|
import 'projects/player/plugins/interactive-plugin/interactive-plugin';
|
|
6
8
|
import { InteractiveMode } from 'projects/player/plugins/interactive-plugin/interfaces';
|
|
7
9
|
import { PlaybackObject } from 'projects/player/interfaces/models/PlaybackObject';
|
|
@@ -17,6 +19,7 @@ export interface InteractivePlayerOptions extends BasePlayerOptions {
|
|
|
17
19
|
currentUser?: CurrentUser;
|
|
18
20
|
questionListPortalNode?: HtmlPortalNode;
|
|
19
21
|
summaryPortalNode?: HtmlPortalNode;
|
|
22
|
+
onShowSummary?: (showing: boolean) => void;
|
|
20
23
|
}
|
|
21
24
|
export declare class InteractivePlayer extends BasePlayer {
|
|
22
25
|
protected options: InteractivePlayerOptions;
|
|
@@ -33,4 +36,5 @@ export declare class InteractivePlayer extends BasePlayer {
|
|
|
33
36
|
protected getSeekBarOptions(): any;
|
|
34
37
|
protected getAnalyticsPlayerType(): AnalyticsPlayerType;
|
|
35
38
|
setFavourite(isFavourited: boolean, onClickFavourite: () => void): void;
|
|
39
|
+
setActivityStatus(status: ShareActivityStatus, onToggle: () => void): void;
|
|
36
40
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BasePlayer, BasePlayerOptions } from './base-player';
|
|
2
2
|
import { PointOfInterest } from 'libs/shared/interfaces';
|
|
3
|
+
import { ShareActivityStatus } from 'libs/shared/enums/ShareActivityStatus';
|
|
3
4
|
import 'projects/player/plugins/clip-plugin/clip-plugin';
|
|
4
5
|
import 'projects/player/plugins/next-video-plugin/next-video-plugin';
|
|
5
6
|
import 'projects/player/plugins/create-clip-button-plugin/create-clip-button-plugin';
|
|
@@ -7,6 +8,7 @@ import 'projects/player/plugins/resources-plugin/resources-plugin';
|
|
|
7
8
|
import 'projects/player/plugins/picture-in-picture-plugin/picture-in-picture-plugin';
|
|
8
9
|
import 'projects/player/plugins/favourite-plugin/favourite-plugin';
|
|
9
10
|
import 'projects/player/plugins/points-of-interest-plugin/points-of-interest-plugin';
|
|
11
|
+
import 'projects/player/plugins/activity-status-plugin/activity-status-plugin';
|
|
10
12
|
import { PlaybackObject } from 'projects/player/interfaces/models/PlaybackObject';
|
|
11
13
|
import { NextVideo } from 'projects/player/interfaces/NextVideo';
|
|
12
14
|
export interface PlayerOptions extends BasePlayerOptions {
|
|
@@ -23,4 +25,5 @@ export declare class Player extends BasePlayer {
|
|
|
23
25
|
togglePictureInPicture(isInPictureInPicture: boolean): void;
|
|
24
26
|
protected additionalSetup(playbackObject: PlaybackObject): Promise<void>;
|
|
25
27
|
setFavourite(isFavourited: boolean, onClickFavourite: () => void): void;
|
|
28
|
+
setActivityStatus(status: ShareActivityStatus, onToggle: () => void): void;
|
|
26
29
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import videojs from 'video.js';
|
|
2
|
+
import { ShareActivityStatus } from 'libs/shared/enums/ShareActivityStatus';
|
|
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
|
+
declare class ActivityStatusPlugin extends Plugin {
|
|
18
|
+
private activityStatus;
|
|
19
|
+
private onToggleStatus;
|
|
20
|
+
private button;
|
|
21
|
+
setActivityStatus(activityStatus: ShareActivityStatus, onToggleStatus: () => void): void;
|
|
22
|
+
private renderActivityStatusButton;
|
|
23
|
+
}
|
|
24
|
+
declare module 'video.js' {
|
|
25
|
+
interface VideoJsPlayer {
|
|
26
|
+
activityStatusPlugin(): ActivityStatusPlugin;
|
|
27
|
+
activePlugins_: {
|
|
28
|
+
activityStatusPlugin: boolean;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import videojs, { VideoJsPlayer } from 'video.js';
|
|
2
|
+
import { ShareActivityStatus } from 'libs/shared/enums/ShareActivityStatus';
|
|
3
|
+
declare const Button: {
|
|
4
|
+
new (player: VideoJsPlayer, options?: videojs.ComponentOptions): videojs.Button;
|
|
5
|
+
prototype: videojs.Button;
|
|
6
|
+
};
|
|
7
|
+
import './activity-status-button.scss';
|
|
8
|
+
interface ActivityStatusButtonOptions extends videojs.ComponentOptions {
|
|
9
|
+
activityStatus: ShareActivityStatus;
|
|
10
|
+
clickHandler: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare class ActivityStatusButton extends Button {
|
|
13
|
+
options_: ActivityStatusButtonOptions;
|
|
14
|
+
controlText_: string;
|
|
15
|
+
constructor(player: VideoJsPlayer, options: ActivityStatusButtonOptions);
|
|
16
|
+
update(): void;
|
|
17
|
+
handleClick(...args: any[]): void;
|
|
18
|
+
buildCSSClass(): string;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { VideoJsPlayer } from 'video.js';
|
|
3
3
|
import { HtmlPortalNode } from 'react-reverse-portal';
|
|
4
|
-
import { Interactive } from 'libs/shared/interfaces';
|
|
4
|
+
import { CurrentUser, Interactive } from 'libs/shared/interfaces';
|
|
5
5
|
import { InteractiveState } from 'projects/player/plugins/interactive-plugin/interfaces';
|
|
6
6
|
import { ProgressEvent } from 'projects/player/plugins/progress-reporter-plugin/progress-reporter-plugin';
|
|
7
7
|
import { ResultsService } from 'projects/player/plugins/interactive-plugin/utils/ResultsService';
|
|
8
8
|
interface InteractiveSummaryWrapperProps {
|
|
9
|
+
title: string;
|
|
10
|
+
currentUser: CurrentUser;
|
|
9
11
|
player: VideoJsPlayer;
|
|
10
12
|
state: InteractiveState;
|
|
11
13
|
progress?: ProgressEvent[];
|
|
12
14
|
interactive: Interactive;
|
|
13
15
|
portalNode: HtmlPortalNode;
|
|
14
16
|
resultsService: ResultsService;
|
|
17
|
+
imageCdnUrl: string;
|
|
15
18
|
goToTimepoint: (timepointId: string, interactionId: string) => void;
|
|
19
|
+
onShowSummary?: (showing: boolean) => void;
|
|
16
20
|
}
|
|
17
21
|
export declare function InteractiveSummaryWrapper(props: InteractiveSummaryWrapperProps): React.ReactElement;
|
|
18
22
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Interactive, StudentAttempt } from 'libs/shared/interfaces';
|
|
2
|
+
import { InteractiveState } from 'projects/player/plugins/interactive-plugin/interfaces';
|
|
3
|
+
interface GetStudentAttemptOptions {
|
|
4
|
+
interactive: Interactive;
|
|
5
|
+
state: InteractiveState;
|
|
6
|
+
}
|
|
7
|
+
export declare const getStudentAttempts: (options: GetStudentAttemptOptions) => {
|
|
8
|
+
correctCount: number;
|
|
9
|
+
total: number;
|
|
10
|
+
answered: number;
|
|
11
|
+
studentAttempts: StudentAttempt[];
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Interaction, Interactive, StudentResults, Timepoint } from 'libs/shared/interfaces';
|
|
3
|
+
import { InteractiveState } from 'projects/player/plugins/interactive-plugin/interfaces';
|
|
4
|
+
interface InteractionSummaryProps {
|
|
5
|
+
studentResults: StudentResults;
|
|
6
|
+
interaction: Interaction;
|
|
7
|
+
timepoint: Timepoint;
|
|
8
|
+
interactive: Interactive;
|
|
9
|
+
state: InteractiveState;
|
|
10
|
+
goToTimepoint: (timepointId: string, interactionId: string) => void;
|
|
11
|
+
interactionNumber: number;
|
|
12
|
+
imageCdnUrl: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function InteractionSummary(props: InteractionSummaryProps): React.ReactElement;
|
|
15
|
+
export {};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { HtmlPortalNode } from 'react-reverse-portal';
|
|
3
3
|
import { VideoJsPlayer } from 'video.js';
|
|
4
|
-
import {
|
|
4
|
+
import { ResultsService } from 'projects/player/plugins/interactive-plugin/utils/ResultsService';
|
|
5
|
+
import { CurrentUser, Interactive } from 'libs/shared/interfaces';
|
|
5
6
|
import { ProgressEvent } from 'projects/player/plugins/progress-reporter-plugin/progress-reporter-plugin';
|
|
6
7
|
import { InteractiveState } from 'projects/player/plugins/interactive-plugin/interfaces';
|
|
7
|
-
import { ResultsService } from 'projects/player/plugins/interactive-plugin/utils/ResultsService';
|
|
8
8
|
interface InteractiveSummaryProps {
|
|
9
|
+
title: string;
|
|
9
10
|
showSummary: boolean;
|
|
10
11
|
setShowSummary: (show: boolean) => void;
|
|
12
|
+
imageCdnUrl: string;
|
|
13
|
+
currentUser: CurrentUser;
|
|
11
14
|
player: VideoJsPlayer;
|
|
12
15
|
state: InteractiveState;
|
|
13
16
|
progress?: ProgressEvent[];
|
|
@@ -23,6 +23,7 @@ declare const Plugin: {
|
|
|
23
23
|
registerPlugin<T_1 extends any>(name: string, plugin: T_1): () => T_1;
|
|
24
24
|
};
|
|
25
25
|
interface InteractivePluginOptions {
|
|
26
|
+
title: string;
|
|
26
27
|
currentUser?: CurrentUser;
|
|
27
28
|
interactive: Interactive;
|
|
28
29
|
mode?: InteractiveMode;
|
|
@@ -34,6 +35,7 @@ interface InteractivePluginOptions {
|
|
|
34
35
|
latestSession?: LatestSession;
|
|
35
36
|
clipOffset?: number;
|
|
36
37
|
analyticsService: AnalyticsService;
|
|
38
|
+
onShowSummary?: (showing: boolean) => void;
|
|
37
39
|
}
|
|
38
40
|
declare class InteractivePlugin extends Plugin {
|
|
39
41
|
private options;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
import { HashObject } from 'libs/common/react/interfaces';
|
|
2
|
+
import { InteractionState } from '../interfaces';
|
|
1
3
|
export declare const SLIDING_TIME = 400;
|
|
2
4
|
export declare function isNewId(id: string): boolean;
|
|
5
|
+
export declare function getFilteredState(state: InteractionState): HashObject;
|
|
@@ -54,6 +54,7 @@ interface PointOfInterestIndicatorOptions extends videojs.ComponentOptions {
|
|
|
54
54
|
export declare class PointOfInterestIndicator extends Component {
|
|
55
55
|
private el_;
|
|
56
56
|
options_: PointOfInterestIndicatorOptions;
|
|
57
|
+
private eventsService;
|
|
57
58
|
private pointOfInterest;
|
|
58
59
|
private hasBuffered;
|
|
59
60
|
private hasPlayed;
|
|
@@ -62,10 +63,12 @@ export declare class PointOfInterestIndicator extends Component {
|
|
|
62
63
|
buildCSSClass(): string;
|
|
63
64
|
createEl(tagName?: string, properties?: any, attributes?: any): Element;
|
|
64
65
|
private bindListeners;
|
|
66
|
+
dispose(): void;
|
|
65
67
|
private getPointOfInterestTime;
|
|
66
68
|
private setPosition;
|
|
67
69
|
updateBuffered(bufferEnd: number): void;
|
|
68
70
|
updatePlaybackProgress(currentTime: number): void;
|
|
71
|
+
toggleVisibility(visible: boolean): void;
|
|
69
72
|
/**
|
|
70
73
|
* We want the POI description to be displayed in the TimeTooltip when the user
|
|
71
74
|
* hovers over a POI.
|
|
@@ -76,8 +79,21 @@ export declare class PointOfInterestIndicator extends Component {
|
|
|
76
79
|
*/
|
|
77
80
|
private onMouseOver;
|
|
78
81
|
private onMouseLeave;
|
|
82
|
+
private onGlancePointOfInterestMouseEnter;
|
|
83
|
+
private onGlancePointOfInterestMouseLeave;
|
|
79
84
|
private setTimeTooltipText;
|
|
80
85
|
private clearTimeTooltipText;
|
|
86
|
+
/**
|
|
87
|
+
* We only need to call this when we're manually forcing the MouseTimeDisplay
|
|
88
|
+
* to show. If it's being triggered natively using pointer events then the time
|
|
89
|
+
* will be set automatically.
|
|
90
|
+
*/
|
|
91
|
+
private setTimeTooltipTime;
|
|
92
|
+
private positionMouseTimeDisplay;
|
|
93
|
+
private showMouseTimeDisplay;
|
|
94
|
+
private hideMouseTimeDisplay;
|
|
95
|
+
private getSeekBar;
|
|
96
|
+
private getMouseTimeDisplay;
|
|
81
97
|
private getTimeTooltip;
|
|
82
98
|
}
|
|
83
99
|
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import videojs, { VideoJsPlayer } from 'video.js';
|
|
2
|
+
declare const MenuItem: {
|
|
3
|
+
new (player: VideoJsPlayer, options?: videojs.MenuItemOptions): videojs.MenuItem;
|
|
4
|
+
prototype: videojs.MenuItem;
|
|
5
|
+
};
|
|
6
|
+
interface PointsOfInterestMenuItemOptions extends videojs.MenuItemOptions {
|
|
7
|
+
pointsOfInterestVisible: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare class PointsOfInterestMenuItem extends MenuItem {
|
|
10
|
+
private toggleEl;
|
|
11
|
+
private pointsOfInterestVisible;
|
|
12
|
+
/**
|
|
13
|
+
* Because we want to bind our listener in createEl
|
|
14
|
+
* and createEl runs in super. We store if we've bounud
|
|
15
|
+
* our handler, so we only call bind once and
|
|
16
|
+
* the call to removeEventListener will still work
|
|
17
|
+
*/
|
|
18
|
+
private handlerBound;
|
|
19
|
+
constructor(player: VideoJsPlayer, options: PointsOfInterestMenuItemOptions);
|
|
20
|
+
handleToggle(): void;
|
|
21
|
+
private toggle;
|
|
22
|
+
private toggleOn;
|
|
23
|
+
private toggleOff;
|
|
24
|
+
/**
|
|
25
|
+
* Because we extend MenuItem which will close the menu by default
|
|
26
|
+
* we need to halt the event propogation here
|
|
27
|
+
*/
|
|
28
|
+
handleClick(event: videojs.EventTarget.Event): void;
|
|
29
|
+
createEl(tagName?: string, properties?: any, attributes?: any): HTMLLIElement;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
package/dist/projects/player/src/plugins/points-of-interest-plugin/points-of-interest-plugin.d.ts
CHANGED
|
@@ -18,19 +18,21 @@ interface PointsOfInterestPluginOptions {
|
|
|
18
18
|
pointsOfInterest: PointOfInterest[];
|
|
19
19
|
}
|
|
20
20
|
export declare class PointsOfInterestPlugin extends Plugin {
|
|
21
|
-
private pointsOfInterest;
|
|
22
21
|
private pointOfInterestIndicators;
|
|
23
|
-
|
|
22
|
+
private pointsOfInterest?;
|
|
23
|
+
constructor(player: VideoJsPlayer, options?: PointsOfInterestPluginOptions);
|
|
24
24
|
private initialize;
|
|
25
25
|
private bindListeners;
|
|
26
|
+
togglePointsOfInterest(visible: boolean): void;
|
|
26
27
|
private setupTrack;
|
|
27
28
|
private createPointOfInterestIndicators;
|
|
29
|
+
private addMenuItem;
|
|
28
30
|
private updateBuffered;
|
|
29
31
|
private updatePlaybackProgress;
|
|
30
32
|
}
|
|
31
33
|
declare module 'video.js' {
|
|
32
34
|
interface VideoJsPlayer {
|
|
33
|
-
pointsOfInterestPlugin(options
|
|
35
|
+
pointsOfInterestPlugin(options?: PointsOfInterestPluginOptions): PointsOfInterestPlugin;
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
export {};
|
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.7",
|
|
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.7",
|
|
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.7",
|
|
46
46
|
"@microsoft/signalr": "5.0.2",
|
|
47
47
|
"cropperjs": "1.5.6",
|
|
48
48
|
"draft-convert": "2.1.10",
|