@ylink-sdk/mobile-web 0.1.0
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/adapter-latest.js +4198 -0
- package/dist/protobuf.min.js +3979 -0
- package/dist/style.css +1 -0
- package/dist/web-audio-api-shim-light.js +1253 -0
- package/dist/ylink-sdk-mobile.umd.js +79 -0
- package/index.d.ts +92 -0
- package/index.js +3 -0
- package/package.json +56 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
type WebViewMode = 'client' | 'component';
|
|
3
|
+
|
|
4
|
+
interface ParamsInit {
|
|
5
|
+
clientId: string;
|
|
6
|
+
accessToken: string;
|
|
7
|
+
baseURL: string;
|
|
8
|
+
leaveURL: string;
|
|
9
|
+
videoSDKLibDir: string;
|
|
10
|
+
meetingNum: string;
|
|
11
|
+
pwd: string;
|
|
12
|
+
displayName: string;
|
|
13
|
+
viewMode?: WebViewMode;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface Custom {
|
|
17
|
+
showMeetingHeader?: boolean;
|
|
18
|
+
showMeetingControlBar?: boolean;
|
|
19
|
+
fixedMeetingHeader?: boolean;
|
|
20
|
+
fixedMeetingControlBar?: boolean;
|
|
21
|
+
showPreview?: boolean;
|
|
22
|
+
showAudioButton?: boolean;
|
|
23
|
+
showVideoButton?: boolean;
|
|
24
|
+
showInviteButton?: boolean;
|
|
25
|
+
showMemberListButton?: boolean;
|
|
26
|
+
showChatButton?: boolean;
|
|
27
|
+
showMoreButton?: boolean;
|
|
28
|
+
showFeedbackButton?: boolean;
|
|
29
|
+
showShareContentButton?: boolean;
|
|
30
|
+
showLeaveMeetingButton?: boolean;
|
|
31
|
+
showHeaderMeetingStatus?: boolean;
|
|
32
|
+
showHeaderMeetingNumber?: boolean;
|
|
33
|
+
showLayoutTypeButton?: boolean;
|
|
34
|
+
showFullscreenButton?: boolean;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface I18nCustom {
|
|
38
|
+
zh?: {
|
|
39
|
+
'join.title'?: string;
|
|
40
|
+
'join.button.text'?: string;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
interface ParamsInit {
|
|
45
|
+
clientId: string;
|
|
46
|
+
accessToken: string;
|
|
47
|
+
baseURL: string;
|
|
48
|
+
leaveURL: string;
|
|
49
|
+
videoSDKLibDir: string;
|
|
50
|
+
meetingNum: string;
|
|
51
|
+
pwd: string;
|
|
52
|
+
displayName: string;
|
|
53
|
+
viewMode?: WebViewMode;
|
|
54
|
+
custom?: Custom;
|
|
55
|
+
i18n?: I18nCustom;
|
|
56
|
+
themeColor?: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
interface ComponentCustom {
|
|
60
|
+
moveable?: boolean;
|
|
61
|
+
mainWindowOptions?: {
|
|
62
|
+
width: number;
|
|
63
|
+
height: number;
|
|
64
|
+
top: number;
|
|
65
|
+
left: number;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type ParamsMeetingInit = ParamsInit & {
|
|
70
|
+
componentCustom?: ComponentCustom;
|
|
71
|
+
custom?: Custom;
|
|
72
|
+
i18n?: I18nCustom;
|
|
73
|
+
themeColor?: string;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export declare const YlinkMeeting: {
|
|
77
|
+
version: string;
|
|
78
|
+
checkSupport: () => boolean;
|
|
79
|
+
init: (params: ParamsMeetingInit) => Promise<void>;
|
|
80
|
+
join: () => Promise<void>;
|
|
81
|
+
end: () => Promise<void>;
|
|
82
|
+
leave: () => Promise<void>;
|
|
83
|
+
destroy: () => Promise<void>;
|
|
84
|
+
muteAudio({ mute }: { mute: boolean }): void;
|
|
85
|
+
muteVideo({ mute }: { mute: boolean }): void;
|
|
86
|
+
muteAll({ mute }: { mute: boolean }): void;
|
|
87
|
+
rename({ displayName }: { displayName: string }): void;
|
|
88
|
+
getMeetingInfo(): any;
|
|
89
|
+
getInteractiveUsers(): any;
|
|
90
|
+
getBroadcastUsers(): any;
|
|
91
|
+
getCurrentUser(): any;
|
|
92
|
+
};
|
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ylink-sdk/mobile-web",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"typings": "index.d.ts",
|
|
6
|
+
"author": "ylink",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"index.d.ts"
|
|
12
|
+
],
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"dev": "vite",
|
|
18
|
+
"build": "vite build",
|
|
19
|
+
"lint": "eslint src",
|
|
20
|
+
"prettier": "prettier --write src",
|
|
21
|
+
"serve": "vite preview",
|
|
22
|
+
"test:e2e": "cypress open"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@vant/use": "^1.3.6",
|
|
26
|
+
"clipboard": "^2.0.11",
|
|
27
|
+
"nosleep.js": "^0.12.0",
|
|
28
|
+
"vant": "3.4.9",
|
|
29
|
+
"vue": "^3.2.33",
|
|
30
|
+
"vue-i18n": "9.2.0-beta.36"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@vitejs/plugin-legacy": "^1.8.2",
|
|
34
|
+
"@vitejs/plugin-vue": "^2.0.0",
|
|
35
|
+
"@vueuse/core": "^8.2.6",
|
|
36
|
+
"@ylink-sdk/meeting": "workspace:*",
|
|
37
|
+
"@ylink-sdk/shared": "workspace:*",
|
|
38
|
+
"@ylink-sdk/stream": "workspace:*",
|
|
39
|
+
"bowser": "^2.11.0",
|
|
40
|
+
"cypress": "^10.0.3",
|
|
41
|
+
"dayjs": "^1.11.1",
|
|
42
|
+
"jest": "^28.1.1",
|
|
43
|
+
"moveable": "^0.29.3",
|
|
44
|
+
"sass": "^1.50.1",
|
|
45
|
+
"screenfull": "^6.0.1",
|
|
46
|
+
"simple-pinyin": "^4.0.0",
|
|
47
|
+
"unplugin-auto-import": "^0.5.11",
|
|
48
|
+
"unplugin-vue-components": "^0.17.14",
|
|
49
|
+
"vite": "^2.9.11",
|
|
50
|
+
"vite-plugin-style-import": "^1.4.1",
|
|
51
|
+
"vue-tsc": "^0.29.8",
|
|
52
|
+
"vue-virtual-scroller": "^2.0.0-alpha.1",
|
|
53
|
+
"vue3-moveable": "^0.4.3",
|
|
54
|
+
"xss": "^1.0.11"
|
|
55
|
+
}
|
|
56
|
+
}
|