@sdk185/sip-phone-sdk26 0.0.5 → 0.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdk185/sip-phone-sdk26",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -2,10 +2,6 @@
2
2
  <template>
3
3
  <!-- 主容器:使用flex垂直布局,内容居中对齐 -->
4
4
  <div class="d-flex flex-column align-center justify-space-between sip-call-main">
5
- <!-- 顶部提示信息 -->
6
- <div style="position: absolute; top: 0; left: 0; background: transparent; color: #FFFFFF; width: 100%; z-index: 9999; height: 0; padding-top: 10px; padding-left: 10px;">
7
- <!-- {{ prompt }} -->
8
- </div>
9
5
  <!-- 位置信息显示区域 -->
10
6
  <div class="location-wrapper" v-if="showLocation">
11
7
  <!-- 显示经纬度和海拔信息 -->
@@ -14,21 +10,19 @@
14
10
  <p>ALT: {{altitude}}</p>
15
11
  </div>
16
12
  <!-- 通话信息显示区域 -->
17
- <div class="d-flex flex-column align-center" v-if="!miniMode && !showDialPad" style="margin-top:160px;">
13
+ <div class="d-flex flex-column align-center call-btn" v-if="!miniMode && !showDialPad">
18
14
  <!-- 应用logo -->
19
- <!-- <img class="elevation-4" alt="logo" :src="require('@/assets/normal-logo.png')" width="72" height="72" style="border-radius: 50%;"/> -->
20
- <img class="elevation-4" alt="logo" src="https://kefu-gm-jc-dat.boc-samsunglife.cn/static/normal-logo.png" width="72" height="72" style="border-radius: 50%;"/>
15
+ <img class="elevation-4 call-img" alt="logo" src="https://kefu-gm-jc-dat.boc-samsunglife.cn/static/normal-logo.png"/>
21
16
  <!-- 通话状态提示 -->
22
- <p class="mt-6 mb-0" style="font-size: 16px; color: #FFFFFF;">{{callPrompt}}</p>
17
+ <p class="mt-6 mb-0 call-label" >{{callPrompt}}</p>
23
18
  </div>
24
-
25
19
  <!-- 功能按钮区域 -->
26
20
  <div class="pr-10 pl-10 btn-group" v-if="!miniMode && !showDialPad">
27
21
  <v-row>
28
22
  <v-col cols="12" class="text-center">
29
23
  <!-- 通话计时器 -->
30
24
  <div
31
- v-show="isCalling && showHangup" style="font-size: 14px;margin-top: -50px; color: #FFFFFF;">
25
+ v-show="isCalling && showHangup" class="call-duration">
32
26
  视频时长 {{duration}}
33
27
  </div>
34
28
  </v-col>
@@ -37,46 +31,23 @@
37
31
  <v-row class="d-flex justify-space-around mb-10">
38
32
  <!-- 取消按钮 - 用于微信公众号调用的场景 -->
39
33
  <v-btn
40
- style="opacity: 1; background: transparent; box-shadow: none; position: relative; margin-top: -200px;"
34
+ class="cancel-btn"
35
+ style=" "
41
36
  v-show="!isCalling && !needDial"
42
37
  @click="onHangupBtnClick"
43
38
  >
44
- <!-- <img :src="require('@/assets/call-down.png')" alt="hangup" width="80" height="80"> -->
45
- <img src="https://kefu-gm-jc-dat.boc-samsunglife.cn/static/call-down.png" alt="hangup" width="80" height="80">
46
-
47
- <span style="position: absolute; top: 78px; color: #FFFFFF;">取消</span>
39
+ <img class="cancel-img" src="https://kefu-gm-jc-dat.boc-samsunglife.cn/static/call-down.png" alt="hangup" >
40
+ <span class="cancel-label">取消</span>
48
41
  </v-btn>
49
-
50
- <!-- 原拨号按钮已注释,改为由微信公众号调用 -->
51
- <!-- <v-btn
52
- large
53
- fab
54
- color="#FFFFFF"
55
- v-show="!isCalling && !needDial"
56
- @click="onMakeCallBtnClick"
57
- >
58
- <v-icon>mdi-phone</v-icon>
59
- <span class="btn-label">拨号</span>
60
- </v-btn> -->
61
-
62
- <!-- 麦克风静音/取消静音按钮 -->
63
- <!-- 当正在通话且显示挂断按钮时显示 -->
64
- <!-- 点击时触发onMuteBtnClick方法,传入'audio'参数 -->
65
42
  <v-btn
66
43
  large
67
44
  v-show="isCalling && showHangup"
68
45
  @click="onMuteBtnClick('audio')"
69
46
  class="custom-mute-btn"
70
47
  >
71
- <!-- 静音状态显示开启的麦克风图标 -->
72
- <!-- <img v-if="!isAudioMute" :src="require('@/assets/adudio-open.png')" width="55" height="80">
73
- <img v-else :src="require('@/assets/audio-close.png')" width="55" height="80"> -->
74
- <img v-if="!isAudioMute" src="https://kefu-gm-jc-dat.boc-samsunglife.cn/static/adudio-open.png" width="55" height="80">
75
- <img v-else src="https://kefu-gm-jc-dat.boc-samsunglife.cn/static/adudio-close.png" width="55" height="80">
76
- <!-- 显示当前状态的文字提示 -->
77
- <!-- <span class="btn-label">{{ isAudioMute ? '取消静音' : '静音' }}</span> -->
48
+ <img class="img-open-close" v-if="!isAudioMute" src="https://kefu-gm-jc-dat.boc-samsunglife.cn/static/adudio-open.png" >
49
+ <img class="img-open-close" v-else src="https://kefu-gm-jc-dat.boc-samsunglife.cn/static/adudio-close.png" >
78
50
  </v-btn>
79
-
80
51
  <!-- 摄像头开关按钮 -->
81
52
  <v-btn
82
53
  large
@@ -84,26 +55,10 @@
84
55
  @click="onMuteBtnClick('video')"
85
56
  class="custom-mute-btn"
86
57
  >
87
- <!-- <img v-if="!isVideoMute" :src="require('@/assets/camera-open.png')" alt="mic-on" width="55" height="80">
88
- <img v-else :src="require('@/assets/camera-close.png')" alt="mic-off" width="55" height="80"> -->
89
- <img v-if="!isVideoMute" src="https://kefu-gm-jc-dat.boc-samsunglife.cn/static/camera-open.png" alt="mic-on" width="55" height="80">
90
- <img v-else src="https://kefu-gm-jc-dat.boc-samsunglife.cn/static/camera-close.png" alt="mic-off" width="55" height="80">
58
+ <img class="img-open-close" v-if="!isVideoMute" src="https://kefu-gm-jc-dat.boc-samsunglife.cn/static/camera-open.png" alt="mic-on">
59
+ <img class="img-open-close" v-else src="https://kefu-gm-jc-dat.boc-samsunglife.cn/static/camera-close.png" alt="mic-off">
91
60
  </v-btn>
92
61
 
93
- <!-- 显示/隐藏本地视频按钮 -->
94
- <!-- <v-btn
95
- style="opacity: .6"
96
- color="blue-grey"
97
- fab
98
- large
99
- dark
100
- v-show="isCalling && showHangup"
101
- @click="onShowLocalVideoBtnClick"
102
- >
103
- <v-icon v-if="localVideo.show">mdi-monitor</v-icon>
104
- <v-icon v-else>mdi-monitor-multiple</v-icon>
105
- <span class="btn-label">{{ localVideo.show ? '隐藏本地' : '显示本地' }}</span>
106
- </v-btn> -->
107
62
  </v-row>
108
63
 
109
64
  <!-- 第二行按钮组 -->
@@ -114,14 +69,11 @@
114
69
  v-show="isCalling && showHangup"
115
70
  @click="onHangupBtnClick"
116
71
  >
117
- <!-- <img :src="require('@/assets/call-down.png')" alt="hangup" width="80" height="80"> -->
118
- <img src="https://kefu-gm-jc-dat.boc-samsunglife.cn/static/call-down.png" alt="hangup" width="80" height="80">
119
- <span style="position: absolute; top: 73px; color: #FFFFFF;">挂断</span>
72
+ <img class="hangup-img" src="https://kefu-gm-jc-dat.boc-samsunglife.cn/static/call-down.png" alt="hangup">
73
+ <span class="hangup-label">挂断</span>
120
74
  </v-btn>
121
-
122
75
  <!-- 切换摄像头按钮 -->
123
76
  <v-btn
124
- style="opacity: .6; position: absolute; left: calc(50% + 80px);"
125
77
  v-show="isCalling && showHangup"
126
78
  @click="onSwitchCameraBtnClick"
127
79
  class="transparent-btn"
@@ -130,7 +82,6 @@
130
82
  </v-btn>
131
83
  </v-row>
132
84
  </div>
133
-
134
85
  <!-- 视频容器区域 -->
135
86
  <v-expand-transition>
136
87
  <div class="sip-call-wrapper" v-show="showVideoCt" @click="onSipCallClick">
@@ -197,25 +148,8 @@
197
148
  controls
198
149
  ></video>
199
150
  </vue-draggable-resizable>
200
-
201
- <!-- 视频控制区域 -->
202
- <!-- <template v-if="!miniMode">
203
- 通话计时器
204
- <span class="video-timer">
205
- <img :src="require('@/assets/icon_Recording_Fill_Red_Active.svg')" alt="icon" width="24" height="24" class="mr-2">
206
- {{duration}}
207
- </span>
208
-
209
- 全屏切换按钮
210
- <v-btn class="camera-switch-btn" dark text x-small width="24" height="24" min-width="24" @click="onChangeVideoFullScreenBtnClick">
211
- <v-icon>mdi-box-shadow</v-icon>
212
- <span class="btn-label">全屏</span>
213
- </v-btn>
214
- </template> -->
215
-
216
151
  </div>
217
152
  </v-expand-transition>
218
-
219
153
  <!-- 拨号盘组件 -->
220
154
  <v-expand-transition>
221
155
  <dial-panel-mini
@@ -228,12 +162,10 @@
228
162
  ref="dialPanelMini"
229
163
  />
230
164
  </v-expand-transition>
231
-
232
165
  <!-- 音频播放器(用于播放提示音) -->
233
166
  <v-bottom-sheet v-model="showAudioPlayer" hide-overlay>
234
167
  <audio :src="require('@/assets/outgoing-call2.mp3')" loop ref="audioPlayer"></audio>
235
168
  </v-bottom-sheet>
236
-
237
169
  <!-- 提示信息弹窗 -->
238
170
  <v-snackbar v-model="showSnackbar" :timeout="2000">
239
171
  {{snackbarText}}
@@ -591,12 +523,17 @@ export default {
591
523
  }
592
524
 
593
525
  const params = { target: this.dialNum }
526
+ console.log('paramsparams Data', params)
527
+ console.log('this.callData Data', this.callData)
528
+ console.log('window.config.videoParams', window.config.videoParams)
594
529
  if (this.callType === 'videoOnly') {
530
+ console.log('videoOnly')
595
531
  params.video = Object.assign({
596
532
  facingMode: 'user'
597
533
  }, window.config.videoParams)
598
534
  params.audio = false
599
535
  } else if (this.callType === 'video') {
536
+ console.log('video')
600
537
  params.video = Object.assign({
601
538
  facingMode: 'user'
602
539
  }, window.config.videoParams)
@@ -608,6 +545,7 @@ export default {
608
545
 
609
546
  if (this.callData) {
610
547
  params.callData = this.callData
548
+ console.log('Call Da1ta', this.callData)
611
549
  }
612
550
 
613
551
  // console.info('Call Params', params)
@@ -629,7 +567,6 @@ export default {
629
567
  }
630
568
 
631
569
  },
632
-
633
570
  onHangupBtnClick () {
634
571
  this.sipMix.hangup();
635
572
  // this.$emit('hangup-event', { imType: 0 });// 通知父组件
@@ -1030,15 +967,15 @@ export default {
1030
967
  .btn-group {
1031
968
  width: 100%;
1032
969
  position: absolute;
1033
- bottom: 150px;
970
+ bottom: 250px;
1034
971
  z-index: 4000;
1035
972
  }
1036
973
 
1037
974
  @media screen and (min-width: 1024px) {
1038
975
  .btn-group {
1039
976
  position: absolute;
1040
- bottom: 80px;
1041
- width: 640px;
977
+ bottom: 40px;
978
+ width: 320px;
1042
979
  z-index: 4000;
1043
980
  }
1044
981
  }
@@ -1051,7 +988,6 @@ export default {
1051
988
  }
1052
989
 
1053
990
  .video-panel {
1054
- // touch-action: none;
1055
991
  position: absolute;
1056
992
  display: flex;
1057
993
  flex-direction: column;
@@ -1158,9 +1094,68 @@ export default {
1158
1094
  height: auto !important;
1159
1095
  padding: 0 !important;
1160
1096
  margin: 0 !important;
1097
+ opacity: .6 !important;
1098
+ position: absolute !important;
1099
+ left: calc(50% + 80px) !important;
1100
+ color: #FFFFFF;
1161
1101
  }
1162
1102
  .transparent-btn::before {
1163
1103
  background-color: transparent !important;
1164
1104
  opacity: 0 !important;
1165
1105
  }
1106
+
1107
+ .call-btn{
1108
+ margin-top:160px;
1109
+ }
1110
+ .call-img{
1111
+ width:100px;
1112
+ height:100px;
1113
+ border-radius: 50%;
1114
+ }
1115
+
1116
+
1117
+ .call-label{
1118
+ font-size: 16px;
1119
+ color: #FFFFFF
1120
+ }
1121
+
1122
+ .cancel-btn{
1123
+ opacity: 1;
1124
+ background: transparent !important;
1125
+ box-shadow: none !important;
1126
+ position: relative !important;
1127
+ margin-top: -50px !important;
1128
+ }
1129
+ .cancel-img {
1130
+ width: 80px;
1131
+ height: 80px;
1132
+ }
1133
+ .cancel-label{
1134
+ top: 78px;
1135
+ position: absolute; color: #FFFFFF;
1136
+ font-size: 16px;
1137
+ }
1138
+
1139
+
1140
+ .call-duration{
1141
+ font-size: 14px;margin-top: -12.5px; color: #FFFFFF;
1142
+ }
1143
+ .hangup-img{
1144
+ width: 80px;
1145
+ height: 80px;
1146
+ }
1147
+ .hangup-label{
1148
+ top: 73px;
1149
+ position: absolute; color: #FFFFFF;
1150
+ font-size: 14px;
1151
+ }
1152
+
1153
+ .img-open-close{
1154
+ width: 55px;
1155
+ height: 80px;
1156
+ }
1157
+ .mb-10 {
1158
+ margin-bottom: 80px;
1159
+ z-index: 1000;
1160
+ }
1166
1161
  </style>