@sdk185/sip-phone-sdk26 0.0.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.
Files changed (48) hide show
  1. package/README.md +24 -0
  2. package/babel.config.js +5 -0
  3. package/dist/SIP_MIX_WEB.js +50 -0
  4. package/dist/demo.html +21 -0
  5. package/dist/en.js +24 -0
  6. package/dist/favicon.ico +0 -0
  7. package/dist/index.html +32 -0
  8. package/dist/index.test.html +31 -0
  9. package/dist/media/outgoing-call2.b8558579.mp3 +0 -0
  10. package/dist/sip-phone-sdk.common.js +41800 -0
  11. package/dist/sip-phone-sdk.css +5 -0
  12. package/dist/sip-phone-sdk.umd.js +41810 -0
  13. package/dist/sip-phone-sdk.umd.min.js +14 -0
  14. package/dist/zh.js +24 -0
  15. package/jsconfig.json +19 -0
  16. package/package.json +91 -0
  17. package/public/SIP_MIX_WEB.js +50 -0
  18. package/public/en.js +24 -0
  19. package/public/favicon.ico +0 -0
  20. package/public/index.html +32 -0
  21. package/public/index.test.html +31 -0
  22. package/public/zh.js +24 -0
  23. package/src/App.vue +124 -0
  24. package/src/assets/adudio-open.png +0 -0
  25. package/src/assets/audio-close.png +0 -0
  26. package/src/assets/call-down.png +0 -0
  27. package/src/assets/camera-close.png +0 -0
  28. package/src/assets/camera-open.png +0 -0
  29. package/src/assets/icon_Recording_Fill_Red_Active.svg +15 -0
  30. package/src/assets/icon_Recording_Fill_Red_Inactive.svg +15 -0
  31. package/src/assets/img_Avatar_User.png +0 -0
  32. package/src/assets/normal-logo.png +0 -0
  33. package/src/assets/outgoing-call2.mp3 +0 -0
  34. package/src/components/DialPanelMini.vue +179 -0
  35. package/src/components/MobilePhone copy.vue +1046 -0
  36. package/src/components/MobilePhone.vue +1166 -0
  37. package/src/components/index.js +36 -0
  38. package/src/components/vuetify.css +29663 -0
  39. package/src/index.js +100 -0
  40. package/src/lang/en.js +24 -0
  41. package/src/lang/zh.js +24 -0
  42. package/src/libs/SIP_MIX_WEB.js +50 -0
  43. package/src/libs/en.js +24 -0
  44. package/src/libs/tool.js +312 -0
  45. package/src/libs/zh.js +24 -0
  46. package/src/main.js +24 -0
  47. package/src/plugins/vuetify.js +11 -0
  48. package/vue.config.js +11 -0
package/dist/demo.html ADDED
@@ -0,0 +1,21 @@
1
+ <meta charset="utf-8">
2
+ <title>sip-phone-sdk demo</title>
3
+ <script src="//unpkg.com/vue@2"></script>
4
+ <script src="./sip-phone-sdk.umd.js"></script>
5
+
6
+ <link rel="stylesheet" href="./sip-phone-sdk.css">
7
+
8
+
9
+ <div id="app">
10
+ <demo></demo>
11
+ </div>
12
+
13
+ <script>
14
+
15
+ new Vue({
16
+ components: {
17
+ demo: sip-phone-sdk
18
+ }
19
+ }).$mount('#app')
20
+
21
+ </script>
package/dist/en.js ADDED
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Created by Wade (weida1985@163.com) on 2023/8/1.
3
+ */
4
+ const en={
5
+ serverConnecting: 'Server connecting',
6
+ serverConnected: 'Server connected',
7
+ connectionClosed: 'Connection closed',
8
+ clickButtonToMakeCall: 'Click button to make call',
9
+ gotCameraStreamFailed: 'Got camera stream failed',
10
+ calling: 'Calling',
11
+ pleaseBePatient: 'Please be patient',
12
+ cameraOrMicUnsupported: 'Camera or mic unsupported',
13
+ WebRTCUnsupported: 'WebRTC unsupported',
14
+ connectionFailedPleaseCheckYourNetwork: 'Connection failed. Please check your network',
15
+ registered: 'Registered',
16
+ unregistered: 'Unregistered',
17
+ registerFailed: 'Register failed',
18
+ cancelled: 'Cancelled',
19
+ hangedUp: 'hangedUp',
20
+ remoteRinging: 'Remote ringing',
21
+ remoteAccept: 'Remote accept'
22
+ }
23
+
24
+ export default en
Binary file
@@ -0,0 +1,32 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport"
7
+ content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
8
+ <link rel="icon" href="<%= BASE_URL %>favicon.ico">
9
+ <title><%= htmlWebpackPlugin.options.title %></title>
10
+ <script>
11
+ window.config = {
12
+ domain: 'videocc.cincc.cn',
13
+ path: 'webcall',
14
+ port: 5049,
15
+ lang: 'zh',
16
+ videoParams: {
17
+ frameRate: 25,
18
+ width: { min: 480, max: 480 },
19
+ height: { min: 640, max: 640 }
20
+ },
21
+ videoCodec: 'h264'
22
+ }
23
+ </script>
24
+ </head>
25
+ <body>
26
+ <noscript>
27
+ <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
28
+ </noscript>
29
+ <div id="app"></div>
30
+ <!-- built files will be auto injected -->
31
+ </body>
32
+ </html>
@@ -0,0 +1,31 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>script 标签引入</title>
6
+ <script src="./SIP_MIX_WEB.js"></script>
7
+ </head>
8
+ <body onload="onload()">
9
+
10
+ <h1>
11
+ This is a test page for script import.
12
+ </h1>
13
+
14
+ <script>
15
+ window.config = {
16
+ domain: 'videocc.cincc.cn',
17
+ path: 'webcall',
18
+ port: 5049
19
+ }
20
+ function onload () {
21
+ const sipMix = SIP_MIX_WEB.getInstance(window.config)
22
+ console.info(sipMix)
23
+ sipMix.start({
24
+ password: '',
25
+ register: false,
26
+ debug: true
27
+ })
28
+ }
29
+ </script>
30
+ </body>
31
+ </html>