@kkcompany/player 1.15.29

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/modules.d.ts ADDED
@@ -0,0 +1,87 @@
1
+ type Playlogv2 = Readonly<{
2
+ __proto__: any
3
+ mapLogEvents: ({
4
+ video,
5
+ version,
6
+ playerName,
7
+ userId,
8
+ getPlaybackStatus,
9
+ }: {
10
+ video: any
11
+ version?: any
12
+ playerName: any
13
+ userId?: string
14
+ getPlaybackStatus?: () => any
15
+ }) => {
16
+ addEventListener: (name: any, handler: any) => void
17
+ all: (handler: any) => void
18
+ emit: (
19
+ name: any,
20
+ {
21
+ currentTime,
22
+ }: {
23
+ currentTime: any
24
+ },
25
+ properties: any
26
+ ) => void
27
+ updateContent: (content: any) => void
28
+ reset: () => void
29
+ }
30
+ logEventNames: {
31
+ playbackBeganLoading: string
32
+ playbackBeganPlayerStartupTime: string
33
+ playbackBeganVideoStartupTime: string
34
+ playbackVideoStarted: string
35
+ playbackVideoPaused: string
36
+ playbackVideoBufferingBegan: string
37
+ playbackVideoBufferingEnded: string
38
+ playbackVideoEnded: string
39
+ playbackSeekingBegan: string
40
+ playbackSeekingEnded: string
41
+ playbackError: string
42
+ playbackSpeedChange: string
43
+ playbackAudioVolumeChange: string
44
+ playbackAudioMuteChange: string
45
+ playbackStreamingQualityChangeDownload: string
46
+ playbackStreamingQualityChangeRender: string
47
+ playing: string
48
+ paused: string
49
+ seek: string
50
+ rewind: string
51
+ forward: string
52
+ openSettings: string
53
+ closeSettings: string
54
+ speedSettingChange: string
55
+ qualitySettingChange: string
56
+ audioVolumeSettingChange: string
57
+ audioMuteSettingChange: string
58
+ }
59
+ }>
60
+
61
+ declare module 'playcraft/modules' {
62
+ export type EnvironmentError = (
63
+ | {allowDevices: string[]}
64
+ | {allowOSs: string[]}
65
+ | {minVersion: string}
66
+ | {allowBrowsers: string[]}
67
+ ) & {name: string}
68
+
69
+ export const createApi: function
70
+ export const startSession: function
71
+ export const getContentInfo: function
72
+ export const getStreamInfo: function
73
+ export const mapLogEvents: function
74
+ export const logEventNames: function
75
+ export const playlogv2: Playlogv2
76
+ export const selectHlsQualities: function
77
+ export const addSentry: function
78
+ export const validateEnvironment: (
79
+ supportEnvironmentList: SupportEnvironmentItem[]
80
+ ) => EnvironmentError
81
+ export const ensureTabLock: () => void | (() => void)
82
+ export const handleIOSHeadphonesDisconnection: ({
83
+ maxStuckSeconds,
84
+ }?: {
85
+ maxStuckSeconds?: number | undefined
86
+ }) => void
87
+ }