react_hsbc_teller 1.9.24 → 1.9.25
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/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +20 -2
package/package.json
CHANGED
|
@@ -296,7 +296,7 @@ class Video extends Component {
|
|
|
296
296
|
saveLog = (val) => {
|
|
297
297
|
axios({
|
|
298
298
|
method: 'get',
|
|
299
|
-
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.
|
|
299
|
+
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.25&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
|
|
300
300
|
|
|
301
301
|
}).then(res => {
|
|
302
302
|
|
|
@@ -1802,6 +1802,24 @@ class Video extends Component {
|
|
|
1802
1802
|
if (publish_tag == 'projectionWhiteboard' && publish_device == 2) {
|
|
1803
1803
|
let newStream1 = stream;
|
|
1804
1804
|
if (stream.getVideoTracks()[0]) {
|
|
1805
|
+
try {
|
|
1806
|
+
console.log('共享')
|
|
1807
|
+
console.log(stream.getVideoTracks()[0])
|
|
1808
|
+
if ( stream.getVideoTracks()[0] instanceof BrowserCaptureMediaStreamTrack) {
|
|
1809
|
+
console.log('tab共享')
|
|
1810
|
+
this.saveLog('Share type = tab')
|
|
1811
|
+
} else if (stream.getVideoTracks()[0] instanceof MediaStreamTrack && stream.getVideoTracks()[0].label.includes('screen')) {
|
|
1812
|
+
console.log('屏幕共享')
|
|
1813
|
+
this.saveLog('Share type = screen')
|
|
1814
|
+
} else if (stream.getVideoTracks()[0].label.includes('window')){
|
|
1815
|
+
console.log('窗口共享')
|
|
1816
|
+
this.saveLog('Share type = window')
|
|
1817
|
+
}
|
|
1818
|
+
} catch (err) {
|
|
1819
|
+
console.log('不支持此浏览器记录投屏类型日志')
|
|
1820
|
+
console.log(navigator.userAgent)
|
|
1821
|
+
console.log(err)
|
|
1822
|
+
}
|
|
1805
1823
|
if (this.state.operateShow) {
|
|
1806
1824
|
await startMix(newStream1, 'mix');
|
|
1807
1825
|
|
|
@@ -2934,7 +2952,7 @@ class Video extends Component {
|
|
|
2934
2952
|
}
|
|
2935
2953
|
}
|
|
2936
2954
|
componentWillMount() {
|
|
2937
|
-
console.log('hsbc_teller_sdk', '1.9.
|
|
2955
|
+
console.log('hsbc_teller_sdk', '1.9.25')
|
|
2938
2956
|
let arr = []
|
|
2939
2957
|
for(let i=1;i<=12;i++){
|
|
2940
2958
|
arr.push({
|