@zhangxuejing123./sip-phone-sdk 0.0.4 → 0.0.5
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
|
@@ -299,13 +299,13 @@ export default {
|
|
|
299
299
|
},
|
|
300
300
|
|
|
301
301
|
watch: {
|
|
302
|
-
isCalling (is) {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
},
|
|
302
|
+
// isCalling (is) {
|
|
303
|
+
// if (is) {
|
|
304
|
+
// this.startDurationCount()
|
|
305
|
+
// } else {
|
|
306
|
+
// this.stopDurationCount()
|
|
307
|
+
// }
|
|
308
|
+
// },
|
|
309
309
|
callId (id) {
|
|
310
310
|
this.lastCallId = id || this.lastCallId
|
|
311
311
|
},
|
|
@@ -736,6 +736,7 @@ export default {
|
|
|
736
736
|
// 处理通话失败事件
|
|
737
737
|
this.sipMix.on('failed', (e) => {
|
|
738
738
|
console.warn('通话失败', e)
|
|
739
|
+
this.stopDurationCount();// 停止计算视频时长
|
|
739
740
|
this.dealCallEndOrFail() // 清理通话相关状态
|
|
740
741
|
this.callPrompt = this.$t('cancelled') // 显示通话已取消提示
|
|
741
742
|
|
|
@@ -755,6 +756,7 @@ export default {
|
|
|
755
756
|
// 处理通话结束事件(对方挂断或通话正常结束)
|
|
756
757
|
this.sipMix.on('ended', () => {
|
|
757
758
|
console.warn('通话结束')
|
|
759
|
+
this.stopDurationCount();// 停止计算视频时长
|
|
758
760
|
this.dealCallEndOrFail() // 清理通话相关状态
|
|
759
761
|
this.callPrompt = this.$t('hangedUp') // 显示通话已挂断提示
|
|
760
762
|
|
|
@@ -842,6 +844,7 @@ export default {
|
|
|
842
844
|
})
|
|
843
845
|
|
|
844
846
|
this.sipMix.on('confirmed', () => {
|
|
847
|
+
this.startDurationCount(); // 开始计算视频时长
|
|
845
848
|
this.startSendPosition()
|
|
846
849
|
})
|
|
847
850
|
|