@kkcompany/player 2.25.0-canary.23 → 2.25.0-canary.25

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/react.d.ts DELETED
@@ -1,178 +0,0 @@
1
- /// <reference types="react" />
2
-
3
- declare module 'playcraft' {
4
- export interface SupportEnvironmentItem {
5
- device?: { type: string };
6
- os?: { name: string; version: string };
7
- browser?: { name: string; version: string };
8
- };
9
-
10
- export interface Recommendation {
11
- title: string;
12
- content: React.ReactNode;
13
- };
14
-
15
- export interface PlayerInstance {
16
- load(): void;
17
- };
18
-
19
- export interface PlayerProps {
20
- ref?: MutableRefObject<PlayerInstance>;
21
- licenseKey: string;
22
- config?: object;
23
- host?: string;
24
- accessToken?: string;
25
- deviceId?: string;
26
- content?: {
27
- contentId: number | string;
28
- contentType: 'videos' | 'lives';
29
- };
30
- customHeader?: object;
31
- customQuery?: object;
32
- lang?: 'en' | 'ja' | 'zh-TW';
33
- langCustomCode?: object;
34
- preload?: 'auto' | 'none';
35
- autoplay?: boolean;
36
- autoplayNext?: boolean;
37
- startTime?: number;
38
- quality?: string | number | {
39
- default: string | number;
40
- getQualityText?({width: number, height: number}): string;
41
- qualitySelectionHack: boolean;
42
- };
43
- mediaSource?: string;
44
- thumbnailSeeking?: boolean;
45
- supportEnvironmentList?: Array<SupportEnvironmentItem>;
46
- limitOnePlaybackAtSameTime?: boolean;
47
- recommendation?: Recommendation;
48
- coverImageUrl?: string;
49
- widevine?: 'force-l1' | 'device' | 'auto' | 'force-l3';
50
- plugins?: Array;
51
- drm?(object): any;
52
- sentry?(object): any;
53
-
54
- onSourceLoaded?(): void;
55
- onReady?(): void;
56
- onPlay?(): void;
57
- onPaused?(): void;
58
- onPlaying?(): void;
59
- onEnded?(): void;
60
- onError?(error: object): void;
61
- onBack?(contentId: number | string): void;
62
- onTimeChanged?(currentTime: number): void;
63
- onSeek?(seekTarget: number, position: number): void;
64
- onSeeked?(currentTime: number): void;
65
- onVolumeChanged?(targetVolume: number, sourceVolume: number): void;
66
- onMuted?(): void;
67
- onUnmuted?(): void;
68
- onVideoQualityChanged?(targetQuality: string, sourceQuality: string): void;
69
- onMediaSourceChanged?(mediaSource: string): void;
70
- onViewModeChange?(viewModeChangedEvent: object): void;
71
- onEnterFullscreen?(): void;
72
- onExitFullscreen?(): void;
73
- onStallStarted?(): void;
74
- onStallEnded?(): void;
75
- onReplay?(): void;
76
- onChangeVideo?(content: object): void;
77
- onChangeToNextVideo?(content: object): void;
78
- onChangeToPreviousVideo?(content: object): void;
79
- onLogging?(type: string, property: object): void;
80
- onSectionChange?(sectionChangedEvent: object): void;
81
- };
82
-
83
- export const Player: React.FunctionComponent<PlayerProps>;
84
- }
85
-
86
- declare module 'playcraft/react' {
87
- export interface Intl {
88
- locale?: string,
89
- messages?: object,
90
- }
91
-
92
- export type uiMode = 'standalone' | 'embedded';
93
-
94
- export interface PremiumPlayerProps {
95
- source: object;
96
- startTime?: number;
97
- autoplay?: boolean;
98
- quality?: object;
99
- title?: string;
100
- metadata?: object;
101
- chapters?: object[];
102
- // channelTitle?: string;
103
- playbackState?: string;
104
- quality?: object;
105
- currentTime?: number;
106
- playbackRate?: number;
107
- volume?: number;
108
- textTracks?: {
109
- mode: 'showing' | 'hidden'
110
- cues: {
111
- startTime: number
112
- endTime: number
113
- text: string
114
- }[]
115
- }[]
116
- thumbnailsUrl?: string;
117
- controls?: object;
118
- // marks?: object[],
119
- intl?: Intl;
120
- settings?: object;
121
- plugins?: object[];
122
- modulesConfig?: object;
123
- blocking?: boolean;
124
- style?: object;
125
- children?: React.ReactNode;
126
- uiMode?: uiMode;
127
- uiElements?: object;
128
- onError?: function;
129
- onPlaybackStateChange?: function;
130
- onBack?: function;
131
- onChangeNext?: function;
132
- onChangePrevious?: function;
133
- onOpenSettings?: function;
134
- onChangeSettings?: function;
135
- onPlayerLoaded?: function;
136
- onBlockedAutoplay?: function;
137
- sendLog?: function;
138
- license: string;
139
- validationHost: string;
140
- videoRef?: React.useRef<HTMLVideoElement>,
141
- bitmovin?: object;
142
- shaka?: object;
143
- modulesConfig?: {
144
- [key: string]: string
145
- }
146
- drm?: object;
147
- muted?: boolean;
148
- loop?: boolean;
149
- }
150
- export const PremiumPlayer: React.FunctionComponent<PremiumPlayerProps>;
151
-
152
- export interface CoverImageProps {
153
- src?: string
154
- };
155
- export const CoverImage: React.FunctionComponent<CoverImageProps>;
156
-
157
- export const FunctionBarExtension = React.FunctionComponent;
158
- export const InfoBarExtension = React.FunctionComponent;
159
- export const TitleBarExtension = React.FunctionComponent;
160
- export const Addons = React.FunctionComponent;
161
- }
162
-
163
- declare module 'playcraft/modules' {
164
- export const createApi: function;
165
- export const startSession: function;
166
- export const getContentInfo: function;
167
- export const getStreamInfo: function;
168
- export const mapLogEvents: function;
169
- export const logEventNames: function;
170
- export const selectHlsQualities: function;
171
- export const addSentry: function;
172
- }
173
-
174
- declare module 'playcraft/plugins' {
175
- export const MediaTailorPlugin: function;
176
- export const ImaDaiPlugin: function;
177
- export const StallReloadPlugin: function;
178
- }