surflion-service 1.0.2 → 1.0.4
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 +1 -1
- package/surflion.js +3 -0
package/package.json
CHANGED
package/surflion.js
CHANGED
|
@@ -21,6 +21,7 @@ var SurfLion = {
|
|
|
21
21
|
phoneEnded: false,
|
|
22
22
|
userList: [],
|
|
23
23
|
showPhoneNumber: '',
|
|
24
|
+
phoneCallingTime: '0',
|
|
24
25
|
callID:"",
|
|
25
26
|
positionX: '',
|
|
26
27
|
positionY: '',
|
|
@@ -247,6 +248,7 @@ var SurfLion = {
|
|
|
247
248
|
hours > 0 ? hours + ':' : ''
|
|
248
249
|
|
|
249
250
|
surfCallingCallingVirtually.textContent = hours + minutes + ':' + seconds
|
|
251
|
+
SurfLion.phoneCallingTime = hours + minutes + ':' + seconds
|
|
250
252
|
}, 1000);
|
|
251
253
|
|
|
252
254
|
|
|
@@ -1549,6 +1551,7 @@ var SurfLion = {
|
|
|
1549
1551
|
SurfLion.userAgent.stop();
|
|
1550
1552
|
},
|
|
1551
1553
|
sipCall: function (sip_phone_number_) {
|
|
1554
|
+
if(!sip_phone_number_) return
|
|
1552
1555
|
if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
|
|
1553
1556
|
navigator.mediaDevices.getUserMedia({ audio: true })
|
|
1554
1557
|
.then(function(stream) {
|