@zhangxuejing123./sip-phone-sdk 0.0.0 → 0.0.1
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/sip-phone-sdk.common.js +90 -46
- package/dist/sip-phone-sdk.css +1 -1
- package/dist/sip-phone-sdk.umd.js +90 -46
- package/dist/sip-phone-sdk.umd.min.js +5 -5
- package/package.json +1 -1
- package/public/index.html +2 -1
- package/src/App.vue +4 -1
- package/src/components/MobilePhone.vue +201 -1
package/package.json
CHANGED
package/public/index.html
CHANGED
package/src/App.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<v-app style="background-color: rgba(5,29,63)">
|
|
2
|
+
<v-app style="background-color: rgba(5,29,63)" :class="isAPP ? 'my-APP' : ''">
|
|
3
3
|
|
|
4
4
|
<!-- <button @click="onMakeCall">拨号</button> -->
|
|
5
5
|
<v-main>
|
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
},
|
|
35
35
|
|
|
36
36
|
data: () => ({
|
|
37
|
+
isAPP:false,
|
|
37
38
|
debug: false,
|
|
38
39
|
password: '',
|
|
39
40
|
calledNum: '',
|
|
@@ -76,6 +77,8 @@ export default {
|
|
|
76
77
|
},
|
|
77
78
|
|
|
78
79
|
mounted () {
|
|
80
|
+
this.isAPP = window.config.isAPP;
|
|
81
|
+
console.log("isAPP22",this.isAPP)
|
|
79
82
|
let {
|
|
80
83
|
calledNum = '0000021000021001',
|
|
81
84
|
//calledNum = '000001100002011001',
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
</v-btn>
|
|
83
83
|
</v-row>
|
|
84
84
|
</div>
|
|
85
|
-
<!-- 视频容器区域
|
|
85
|
+
<!-- 视频容器区域 -->·
|
|
86
86
|
<v-expand-transition>
|
|
87
87
|
<div class="sip-call-wrapper" v-show="showVideoCt" @click="onSipCallClick">
|
|
88
88
|
<!-- 远程视频窗口 -->
|
|
@@ -1153,5 +1153,205 @@ export default {
|
|
|
1153
1153
|
width: 110px;
|
|
1154
1154
|
height: 160px;
|
|
1155
1155
|
}
|
|
1156
|
+
</style>
|
|
1157
|
+
|
|
1158
|
+
<style lang="scss">
|
|
1159
|
+
.my-APP {
|
|
1160
|
+
.sip-call-main {
|
|
1161
|
+
background-color: #737778;
|
|
1162
|
+
padding: 25% 10px 20% !important;
|
|
1163
|
+
width: 100vw;
|
|
1164
|
+
height: 100vh;
|
|
1165
|
+
overflow: hidden;
|
|
1166
|
+
}
|
|
1167
|
+
.sip-call-wrapper {
|
|
1168
|
+
position: absolute;
|
|
1169
|
+
left: 0;
|
|
1170
|
+
top: 0;
|
|
1171
|
+
width: 100vw;
|
|
1172
|
+
height: 100vh;
|
|
1173
|
+
z-index: 100;
|
|
1174
|
+
}
|
|
1175
|
+
.btn-group {
|
|
1176
|
+
width: 100%;
|
|
1177
|
+
position: absolute;
|
|
1178
|
+
bottom: 250px;
|
|
1179
|
+
z-index: 4000;
|
|
1180
|
+
}
|
|
1181
|
+
@media screen and (min-width: 1024px) {
|
|
1182
|
+
.btn-group {
|
|
1183
|
+
position: absolute;
|
|
1184
|
+
bottom: 40px;
|
|
1185
|
+
width: 320px;
|
|
1186
|
+
z-index: 4000;
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
.sip-call-video {
|
|
1190
|
+
width: 100%;
|
|
1191
|
+
height: 100%;
|
|
1192
|
+
object-fit: cover;
|
|
1193
|
+
background-color: #000000;
|
|
1194
|
+
}
|
|
1195
|
+
.video-panel {
|
|
1196
|
+
position: absolute;
|
|
1197
|
+
display: flex;
|
|
1198
|
+
flex-direction: column;
|
|
1199
|
+
justify-content: space-around;
|
|
1200
|
+
align-items: center;
|
|
1201
|
+
}
|
|
1202
|
+
.video-timer {
|
|
1203
|
+
background-color: rgba(255,255,255,0.80);
|
|
1204
|
+
position: absolute;
|
|
1205
|
+
top: 40px;
|
|
1206
|
+
left: 16px;
|
|
1207
|
+
font-size: 14px;
|
|
1208
|
+
font-weight: bold;
|
|
1209
|
+
padding: 2px 8px 2px 6px;
|
|
1210
|
+
border-radius: 12px;
|
|
1211
|
+
z-index: 2000;
|
|
1212
|
+
display: flex;
|
|
1213
|
+
justify-content: space-around;
|
|
1214
|
+
align-items: center;
|
|
1215
|
+
}
|
|
1216
|
+
.video-switch-btn {
|
|
1217
|
+
position: absolute !important;
|
|
1218
|
+
top: 40px;
|
|
1219
|
+
right: 80px;
|
|
1220
|
+
z-index: 2000;
|
|
1221
|
+
img {
|
|
1222
|
+
background-color: #000000;
|
|
1223
|
+
border-radius: 6px;
|
|
1224
|
+
border: 1px solid #000000;
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
.video-mini-mode {
|
|
1229
|
+
position: absolute !important;
|
|
1230
|
+
top: 40px;
|
|
1231
|
+
right: 48px;
|
|
1232
|
+
z-index: 2000;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
.camera-switch-btn {
|
|
1236
|
+
position: absolute !important;
|
|
1237
|
+
top: 40px;
|
|
1238
|
+
right: 16px;
|
|
1239
|
+
z-index: 2000;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
.video-normal-mode {
|
|
1243
|
+
position: absolute !important;
|
|
1244
|
+
top: 16px;
|
|
1245
|
+
right: 16px;
|
|
1246
|
+
z-index: 2000;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
.location-wrapper {
|
|
1250
|
+
position: absolute;
|
|
1251
|
+
top: 0;
|
|
1252
|
+
right: 0;
|
|
1253
|
+
width: 150px;
|
|
1254
|
+
background-color: #00000055;
|
|
1255
|
+
color: #FFFFFF;
|
|
1256
|
+
padding: 6px;
|
|
1257
|
+
p {
|
|
1258
|
+
font-size: 12px;
|
|
1259
|
+
margin: 0;
|
|
1260
|
+
padding: 0;
|
|
1261
|
+
width: 100%;
|
|
1262
|
+
white-space: nowrap;
|
|
1263
|
+
text-overflow: ellipsis;
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
</style>
|
|
1268
|
+
<style scoped lang="scss">
|
|
1269
|
+
.my-APP {
|
|
1270
|
+
.custom-mute-btn {
|
|
1271
|
+
background: transparent !important;
|
|
1272
|
+
box-shadow: none !important;
|
|
1273
|
+
z-index: 9999 !important;
|
|
1274
|
+
min-width: 0 !important;
|
|
1275
|
+
width: auto !important;
|
|
1276
|
+
height: auto !important;
|
|
1277
|
+
padding: 0 !important;
|
|
1278
|
+
margin: 0 !important;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
/* 移除按钮悬停和激活状态的背景色 */
|
|
1282
|
+
.custom-mute-btn::before {
|
|
1283
|
+
background-color: transparent !important;
|
|
1284
|
+
opacity: 0 !important;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
/* 移除按钮的点击效果 */
|
|
1288
|
+
.custom-mute-btn:hover::before,
|
|
1289
|
+
.custom-mute-btn:focus::before,
|
|
1290
|
+
.custom-mute-btn:active::before {
|
|
1291
|
+
opacity: 0 !important;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
.transparent-btn {
|
|
1295
|
+
background: transparent !important;
|
|
1296
|
+
box-shadow: none !important;
|
|
1297
|
+
min-width: 0 !important;
|
|
1298
|
+
width: auto !important;
|
|
1299
|
+
height: auto !important;
|
|
1300
|
+
padding: 0 !important;
|
|
1301
|
+
margin: 0 !important;
|
|
1302
|
+
opacity: .6 !important;
|
|
1303
|
+
position: absolute !important;
|
|
1304
|
+
left: calc(50% + 80px) !important;
|
|
1305
|
+
}
|
|
1306
|
+
.transparent-btn::before {
|
|
1307
|
+
background-color: transparent !important;
|
|
1308
|
+
opacity: 0 !important;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
.call-btn{
|
|
1312
|
+
margin-top:160px;
|
|
1313
|
+
}
|
|
1314
|
+
.call-img{
|
|
1315
|
+
width:100px;
|
|
1316
|
+
height:100px;
|
|
1317
|
+
border-radius: 50%;
|
|
1318
|
+
}
|
|
1319
|
+
.call-label{
|
|
1320
|
+
font-size: 16px;
|
|
1321
|
+
color: #FFFFFF
|
|
1322
|
+
}
|
|
1323
|
+
.cancel-btn{
|
|
1324
|
+
opacity: 1;
|
|
1325
|
+
background: transparent !important;
|
|
1326
|
+
box-shadow: none !important;
|
|
1327
|
+
position: relative !important;
|
|
1328
|
+
margin-top: -50px !important;
|
|
1329
|
+
}
|
|
1330
|
+
.cancel-img {
|
|
1331
|
+
width: 80px;
|
|
1332
|
+
height: 80px;
|
|
1333
|
+
}
|
|
1334
|
+
.cancel-label{
|
|
1335
|
+
top: 78px;
|
|
1336
|
+
position: absolute; color: #FFFFFF;
|
|
1337
|
+
font-size: 16px;
|
|
1338
|
+
}
|
|
1156
1339
|
|
|
1340
|
+
.call-duration{
|
|
1341
|
+
font-size: 14px;margin-top: -12.5px; color: #FFFFFF;
|
|
1342
|
+
}
|
|
1343
|
+
.hangup-img{
|
|
1344
|
+
width: 80px;
|
|
1345
|
+
height: 80px;
|
|
1346
|
+
}
|
|
1347
|
+
.hangup-label{
|
|
1348
|
+
top: 73px;
|
|
1349
|
+
position: absolute; color: #FFFFFF;
|
|
1350
|
+
font-size: 14px;
|
|
1351
|
+
}
|
|
1352
|
+
.img-open-close{
|
|
1353
|
+
width: 55px;
|
|
1354
|
+
height: 80px;
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1157
1357
|
</style>
|