react_hsbc_teller 2.0.83 → 2.0.86
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/README.md +5 -0
- package/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +81 -11
package/package.json
CHANGED
|
@@ -66,7 +66,7 @@ import axios from 'axios';
|
|
|
66
66
|
import CryptoJS from "crypto-js";
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
const SDK_VERISON = '2.0.
|
|
69
|
+
const SDK_VERISON = '2.0.86'
|
|
70
70
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
71
71
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
72
72
|
const { Option } = Select;
|
|
@@ -1250,9 +1250,9 @@ class Video extends Component {
|
|
|
1250
1250
|
// 人脸识别
|
|
1251
1251
|
facialRecognition = () => {
|
|
1252
1252
|
if (this.isFileSuccuse()) {
|
|
1253
|
-
this.state.faceCustomerType = 1
|
|
1254
1253
|
this.setState({
|
|
1255
|
-
titleModal: '身份验证'
|
|
1254
|
+
titleModal: '身份验证',
|
|
1255
|
+
faceCustomerType: 1
|
|
1256
1256
|
})
|
|
1257
1257
|
this.selectCustomer('facial')
|
|
1258
1258
|
}
|
|
@@ -1365,9 +1365,9 @@ class Video extends Component {
|
|
|
1365
1365
|
}
|
|
1366
1366
|
ocrClick = () => {
|
|
1367
1367
|
if (this.isFileSuccuse()) {
|
|
1368
|
-
this.state.faceCustomerType = 2
|
|
1369
1368
|
this.setState({
|
|
1370
|
-
titleModal: '拍摄证件照片'
|
|
1369
|
+
titleModal: '拍摄证件照片',
|
|
1370
|
+
faceCustomerType: 2
|
|
1371
1371
|
})
|
|
1372
1372
|
this.selectCustomer('ocr')
|
|
1373
1373
|
}
|
|
@@ -1430,7 +1430,9 @@ class Video extends Component {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
1432
|
console.log(list)
|
|
1433
|
-
this.
|
|
1433
|
+
this.setState({
|
|
1434
|
+
listVideoPicture: list
|
|
1435
|
+
})
|
|
1434
1436
|
// const width = 640;
|
|
1435
1437
|
// const height = 360 * this.state.listVideoPicture.length;
|
|
1436
1438
|
if (val == 'add') {
|
|
@@ -1782,8 +1784,10 @@ class Video extends Component {
|
|
|
1782
1784
|
}
|
|
1783
1785
|
handleReceiveMsg = (msg) => {
|
|
1784
1786
|
console.log(JSON.parse(msg));
|
|
1787
|
+
this.saveLog('IM,' + msg)
|
|
1785
1788
|
const Mival = JSON.parse(msg);
|
|
1786
1789
|
if (Mival.typeId == 1210) {
|
|
1790
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
1787
1791
|
// 进行初始化操作
|
|
1788
1792
|
if (Mival.sessionId == this.state.sessionId) {
|
|
1789
1793
|
if (Mival.type == 1) {
|
|
@@ -1807,6 +1811,7 @@ class Video extends Component {
|
|
|
1807
1811
|
// }
|
|
1808
1812
|
// }
|
|
1809
1813
|
else if (Mival.typeId == 3002) { // app进入后台
|
|
1814
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
1810
1815
|
if (Mival.data.sessionId == this.state.sessionId) {
|
|
1811
1816
|
for(let i=1;i<=12;i++){
|
|
1812
1817
|
if(Mival.data.userId == (document.getElementById("feedId"+i).innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId"+i).innerText).uid : '')) {
|
|
@@ -1822,6 +1827,7 @@ class Video extends Component {
|
|
|
1822
1827
|
}
|
|
1823
1828
|
}
|
|
1824
1829
|
else if (Mival.typeId == 3003) { // app进入前台
|
|
1830
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
1825
1831
|
if (Mival.data.sessionId == this.state.sessionId) {
|
|
1826
1832
|
for(let i=1;i<=12;i++){
|
|
1827
1833
|
if(Mival.data.userId == (document.getElementById("feedId"+i).innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId"+i).innerText).uid : '')) {
|
|
@@ -1836,6 +1842,7 @@ class Video extends Component {
|
|
|
1836
1842
|
}
|
|
1837
1843
|
}
|
|
1838
1844
|
else if (Mival.typeId == 5001) { // 客户端离框
|
|
1845
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
1839
1846
|
let TITLE = '客户'
|
|
1840
1847
|
if (Mival.data && Mival.data.userId) {
|
|
1841
1848
|
if (Mival.data.userId.includes(IPAD_SUFFIX)) {
|
|
@@ -1848,6 +1855,7 @@ class Video extends Component {
|
|
|
1848
1855
|
// this.saveVideoPoint('ffd', '客户人脸离框');
|
|
1849
1856
|
}
|
|
1850
1857
|
else if (Mival.typeId == 5002) { // 客户端背光
|
|
1858
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
1851
1859
|
let TITLE = '客户'
|
|
1852
1860
|
if (Mival.data && Mival.data.userId) {
|
|
1853
1861
|
if (Mival.data.userId.includes(IPAD_SUFFIX)) {
|
|
@@ -1860,6 +1868,7 @@ class Video extends Component {
|
|
|
1860
1868
|
// this.saveVideoPoint('env', '客户端背光、曝光过度');
|
|
1861
1869
|
}
|
|
1862
1870
|
else if (Mival.typeId == 5003) { // 客户端弱网
|
|
1871
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
1863
1872
|
let TITLE = '客户'
|
|
1864
1873
|
if (Mival.data && Mival.data.userId) {
|
|
1865
1874
|
if (Mival.data.userId.includes(IPAD_SUFFIX)) {
|
|
@@ -1872,6 +1881,7 @@ class Video extends Component {
|
|
|
1872
1881
|
// this.saveVideoPoint('wnd', '客户端弱网');
|
|
1873
1882
|
}
|
|
1874
1883
|
else if (Mival.typeId == 5004) { // ipad低电量
|
|
1884
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
1875
1885
|
this.messageClick('iPad电量过低', 'error', Mival.data.userId)
|
|
1876
1886
|
|
|
1877
1887
|
this.setState({
|
|
@@ -1890,6 +1900,7 @@ class Video extends Component {
|
|
|
1890
1900
|
setTimeout(this.ipadLowPowerPlay, 0);
|
|
1891
1901
|
}
|
|
1892
1902
|
else if (Mival.typeId == 5005) { // 客户端人脸数量变化
|
|
1903
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
1893
1904
|
let TITLE = '客户'
|
|
1894
1905
|
if (Mival.data && Mival.data.userId) {
|
|
1895
1906
|
if (Mival.data.userId.includes(IPAD_SUFFIX)) {
|
|
@@ -1901,15 +1912,18 @@ class Video extends Component {
|
|
|
1901
1912
|
this.messageClick(TITLE+'人脸数量发生变化', 'error', Mival.data.userId)
|
|
1902
1913
|
}
|
|
1903
1914
|
else if (Mival.typeId == 5006) { // 内网pib检测到敏感词
|
|
1915
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
1904
1916
|
this.messageClick(Mival.content, 'error', Mival.data.userId)
|
|
1905
1917
|
}
|
|
1906
1918
|
else if (Mival.typeId == 5007) { // ipad充电状态
|
|
1919
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
1907
1920
|
if (Mival.type == '1') { // 1充电 2不在充电
|
|
1908
1921
|
this.setState({ ipadLowPowerErrorModalVisible: false})
|
|
1909
1922
|
clearTimeout(this.ipadLowPowerPlayTimer)
|
|
1910
1923
|
}
|
|
1911
1924
|
}
|
|
1912
1925
|
else if (Mival.typeId == 1220) {
|
|
1926
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
1913
1927
|
// 一炒多的图片 1214
|
|
1914
1928
|
if (Mival.sessionId == this.state.sessionId) {
|
|
1915
1929
|
this.saveLog('imgCallback success, typeId=1220, type=' + Mival.data.type)
|
|
@@ -1922,9 +1936,11 @@ class Video extends Component {
|
|
|
1922
1936
|
) // 文字抄录和风险抄录,3--风险,,2--文字
|
|
1923
1937
|
}
|
|
1924
1938
|
} else if (Mival.typeId == 1321) {
|
|
1939
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
1925
1940
|
this.getBase64Image(Mival.fileName)
|
|
1926
1941
|
this.saveLog('signCallback success, typeId=1321, fileName=' + Mival.fileName)
|
|
1927
1942
|
} else if (Mival.typeId == 1216) {
|
|
1943
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
1928
1944
|
// 签字回调 1213
|
|
1929
1945
|
if (Mival.sessionId == this.state.sessionId) {
|
|
1930
1946
|
this.tabTitlesClick('customerScreen', 'delect')
|
|
@@ -1934,6 +1950,7 @@ class Video extends Component {
|
|
|
1934
1950
|
})
|
|
1935
1951
|
}
|
|
1936
1952
|
} else if (Mival.typeId == 1218) {
|
|
1953
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
1937
1954
|
if (Mival.sessionId == this.state.sessionId) {
|
|
1938
1955
|
// 1-开启,2-关闭
|
|
1939
1956
|
if (Mival.type == 1) {
|
|
@@ -1976,6 +1993,7 @@ class Video extends Component {
|
|
|
1976
1993
|
// this.state.branchName = Mival.salesBranchName;
|
|
1977
1994
|
// }
|
|
1978
1995
|
} else if (Mival.typeId == 3100) {
|
|
1996
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
1979
1997
|
if(Mival.data.sessionId == this.state.sessionId) {
|
|
1980
1998
|
muteJson.set(Mival.data.userId, JSON.stringify(Mival))
|
|
1981
1999
|
for(let i=1;i<=12;i++){
|
|
@@ -2000,6 +2018,7 @@ class Video extends Component {
|
|
|
2000
2018
|
}
|
|
2001
2019
|
}
|
|
2002
2020
|
} else if (Mival.typeId == 1214) {
|
|
2021
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
2003
2022
|
if (Mival.sessionId == this.state.sessionId) {
|
|
2004
2023
|
this.setState({
|
|
2005
2024
|
moduleData: Mival,
|
|
@@ -2009,6 +2028,7 @@ class Video extends Component {
|
|
|
2009
2028
|
})
|
|
2010
2029
|
}
|
|
2011
2030
|
} else if (Mival.typeId == 1213) {
|
|
2031
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
2012
2032
|
if (Mival.sessionId == this.state.sessionId) {
|
|
2013
2033
|
this.setState({
|
|
2014
2034
|
moduleData: Mival,
|
|
@@ -2018,6 +2038,7 @@ class Video extends Component {
|
|
|
2018
2038
|
})
|
|
2019
2039
|
}
|
|
2020
2040
|
} else if (Mival.typeId == 121305) {
|
|
2041
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
2021
2042
|
if (Mival.sessionId == this.state.sessionId) {
|
|
2022
2043
|
this.saveLog('signatureCallback fail, typeId=121305, ')
|
|
2023
2044
|
this.props.signatureCallback({
|
|
@@ -2025,6 +2046,7 @@ class Video extends Component {
|
|
|
2025
2046
|
})
|
|
2026
2047
|
}
|
|
2027
2048
|
} else if (Mival.typeId == 121405) {
|
|
2049
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
2028
2050
|
if (Mival.sessionId == this.state.sessionId) {
|
|
2029
2051
|
console.log('imgCallback')
|
|
2030
2052
|
this.saveLog('imgCallback fail, typeId=121405, ')
|
|
@@ -2035,11 +2057,13 @@ class Video extends Component {
|
|
|
2035
2057
|
})
|
|
2036
2058
|
}
|
|
2037
2059
|
} else if (Mival.typeId == 4001) {
|
|
2060
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
2038
2061
|
// 手机端停止投屏
|
|
2039
2062
|
this.tabTitlesClick('customerScreen', 'delect')
|
|
2040
2063
|
this.saveLog('app stop sharing screen, typeId=4001, ')
|
|
2041
2064
|
|
|
2042
2065
|
} else if (Mival.typeId == 4004) {
|
|
2066
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
2043
2067
|
// 线下demo静音处理
|
|
2044
2068
|
if (Mival.data.sessionId == this.state.sessionId && this.isFileSuccuse()) {
|
|
2045
2069
|
if (!this.state.voiceStatue) {
|
|
@@ -2073,6 +2097,7 @@ class Video extends Component {
|
|
|
2073
2097
|
}, 1000);
|
|
2074
2098
|
}
|
|
2075
2099
|
} else if (Mival.typeId == 1401) {
|
|
2100
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
2076
2101
|
// 用户修改名字
|
|
2077
2102
|
if (Mival.sessionId == this.state.sessionId) {
|
|
2078
2103
|
for(let i=1;i<=12;i++){
|
|
@@ -2088,6 +2113,7 @@ class Video extends Component {
|
|
|
2088
2113
|
}
|
|
2089
2114
|
}
|
|
2090
2115
|
} else if (Mival.typeId == 10020) {
|
|
2116
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
2091
2117
|
// 录制中断(模拟测试)
|
|
2092
2118
|
const recordId = Mival.recordId;
|
|
2093
2119
|
|
|
@@ -2132,12 +2158,14 @@ class Video extends Component {
|
|
|
2132
2158
|
// }
|
|
2133
2159
|
|
|
2134
2160
|
} else if (Mival.typeId == 33001 && this.state.sessionId == Mival.data.sessionId) {
|
|
2161
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
2135
2162
|
if (Mival.type == 1) {
|
|
2136
2163
|
this.saveAuthorize(Mival.data.userId)
|
|
2137
2164
|
this.customerFaceClick(this.state.customerList[this.state.customerSelect - 1])
|
|
2138
2165
|
}
|
|
2139
2166
|
console.log('33001 done')
|
|
2140
2167
|
} else if (Mival.typeId == 2210 && this.state.sessionId == Mival.sessionId) {
|
|
2168
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
2141
2169
|
if (Mival.status == 1) {
|
|
2142
2170
|
// 开启了业务录制
|
|
2143
2171
|
console.log('业务录制开启')
|
|
@@ -2150,6 +2178,8 @@ class Video extends Component {
|
|
|
2150
2178
|
this.enableAudioRecording(Mival.id,'supplesale')
|
|
2151
2179
|
} else {
|
|
2152
2180
|
// 开启业务录制的基础上关闭full录制音频,并开启业务录制音频
|
|
2181
|
+
this.state.presaleRecordId = this.state.presaleRecordId || Mival.preAudioRecordId
|
|
2182
|
+
this.saveLog('stop presale recording audio ' + this.state.presaleRecordId)
|
|
2153
2183
|
if(this.state.presaleRecordId) {
|
|
2154
2184
|
this.test_controller.StopRemoteRecord(this.state.presaleRecordId)
|
|
2155
2185
|
}
|
|
@@ -2189,10 +2219,13 @@ class Video extends Component {
|
|
|
2189
2219
|
if(this.state.isAsrStart) this.stopASR();
|
|
2190
2220
|
}
|
|
2191
2221
|
} else if (Mival.typeId == 2002 && this.state.sessionId == Mival.sessionId) {
|
|
2222
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
2192
2223
|
// 会议到时间
|
|
2193
2224
|
console.log('会议超过时间限制')
|
|
2225
|
+
this.saveVideoPoint('leaveTheRoom', 'RM退出-会议超过时间限制')
|
|
2194
2226
|
this.endSessionValue();
|
|
2195
2227
|
} else if (Mival.typeId == 990002 && this.state.sessionId == Mival.sessionId) {
|
|
2228
|
+
this.saveLog('IM TYPE ' + Mival.typeId)
|
|
2196
2229
|
this.props.closePdfCallback({
|
|
2197
2230
|
step: Mival.data.step
|
|
2198
2231
|
})
|
|
@@ -2416,7 +2449,7 @@ class Video extends Component {
|
|
|
2416
2449
|
}
|
|
2417
2450
|
}
|
|
2418
2451
|
console.log(objList, objList1, objList2)
|
|
2419
|
-
this.saveLog('devicesInfo:' + JSON.stringify(
|
|
2452
|
+
this.saveLog('devicesInfo:' + JSON.stringify(objList1))
|
|
2420
2453
|
const cameraList = objList.filter(el => !el.actionname.includes(RECORD_DEVICE_NAME))
|
|
2421
2454
|
const recorderDevice = objList.find(el => el.actionname.includes(RECORD_DEVICE_NAME))
|
|
2422
2455
|
this.setState({
|
|
@@ -2438,9 +2471,15 @@ class Video extends Component {
|
|
|
2438
2471
|
// 麦克风设置默认
|
|
2439
2472
|
objList1.forEach((item, index) => {
|
|
2440
2473
|
console.log('audioinputNameList', this.props.audioinputNameList)
|
|
2441
|
-
if(this.props.audioinputNameList.indexOf(item.actionname) != -1) {
|
|
2442
|
-
|
|
2443
|
-
}
|
|
2474
|
+
// if(this.props.audioinputNameList.indexOf(item.actionname) != -1) {
|
|
2475
|
+
// microId = index
|
|
2476
|
+
// }
|
|
2477
|
+
this.props.audioinputNameList.forEach((item1, index1) => {
|
|
2478
|
+
if(item.actionname.indexOf(item1) || item1.indexOf(item.actionname)){
|
|
2479
|
+
microId = index
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
})
|
|
2444
2483
|
console.log(microId)
|
|
2445
2484
|
// if (item.actionname.indexOf('Microphone Array (Realtek High Definition Audio(SST))') != -1) {
|
|
2446
2485
|
// microId = index
|
|
@@ -2687,7 +2726,7 @@ class Video extends Component {
|
|
|
2687
2726
|
|
|
2688
2727
|
this.roomCallBack(1, '', 0)
|
|
2689
2728
|
this.saveLog('mrtc join room success')
|
|
2690
|
-
|
|
2729
|
+
this.saveVideoPoint('joinRoom', 'RM加入房间成功')
|
|
2691
2730
|
this.state.imStatus = true
|
|
2692
2731
|
this.saveLog('Join im room')
|
|
2693
2732
|
console.log('加入IM房间')
|
|
@@ -2698,6 +2737,7 @@ class Video extends Component {
|
|
|
2698
2737
|
// 加入房间失败
|
|
2699
2738
|
this.test_controller.OnJoinRoomFailed = (err_code, err_msg) => {
|
|
2700
2739
|
this.saveLog('mrtc join room failed,' + err_code)
|
|
2740
|
+
this.saveVideoPoint('joinRoom', 'RM加入房间失败')
|
|
2701
2741
|
console.log('加入房间失败', err_code, err_msg)
|
|
2702
2742
|
// this.setState({
|
|
2703
2743
|
// sessionType: false,
|
|
@@ -2879,6 +2919,7 @@ class Video extends Component {
|
|
|
2879
2919
|
this.setSharedScreenState(true)
|
|
2880
2920
|
this.setSharedScreenTimer(true)
|
|
2881
2921
|
this.saveLog('Share success')
|
|
2922
|
+
this.saveVideoPoint('screenCasting', 'RM发布媒体流成功-投屏')
|
|
2882
2923
|
this.sendMessage({
|
|
2883
2924
|
'typeId': 2030,
|
|
2884
2925
|
'sessionId': this.state.sessionId,
|
|
@@ -2892,6 +2933,7 @@ class Video extends Component {
|
|
|
2892
2933
|
this.videoInfo = this.generateMediaInfo(document.getElementById("video20").name);
|
|
2893
2934
|
}
|
|
2894
2935
|
if (sid == document.getElementById('publish_streamId1').name) {
|
|
2936
|
+
this.saveVideoPoint('releaseStream', 'RM发布媒体流成功-摄像头')
|
|
2895
2937
|
this.state.publishSid = document.getElementById('publish_streamId1').name
|
|
2896
2938
|
this.setState({
|
|
2897
2939
|
|
|
@@ -2950,6 +2992,7 @@ class Video extends Component {
|
|
|
2950
2992
|
transcribeErrorModalVisible: true
|
|
2951
2993
|
})
|
|
2952
2994
|
this.roomCallBack(2, '发布失败', '4-' + err_code)
|
|
2995
|
+
this.saveVideoPoint('releaseStream', 'RM发布媒体流失败-摄像头')
|
|
2953
2996
|
} else {
|
|
2954
2997
|
this.test_controller.UnPublish(sid)
|
|
2955
2998
|
let message = '投屏失败请重新投屏'
|
|
@@ -2967,6 +3010,7 @@ class Video extends Component {
|
|
|
2967
3010
|
this.setSharedScreenState(false)
|
|
2968
3011
|
this.setSharedScreenTimer(false)
|
|
2969
3012
|
this.saveLog('Share fail, code=' + err_code)
|
|
3013
|
+
this.saveVideoPoint('screenCasting', 'RM发布媒体流失败-投屏')
|
|
2970
3014
|
}
|
|
2971
3015
|
|
|
2972
3016
|
};
|
|
@@ -3478,31 +3522,37 @@ class Video extends Component {
|
|
|
3478
3522
|
this.state.recordId = record_id
|
|
3479
3523
|
this.videoRecordCallback('1', true)
|
|
3480
3524
|
this.saveLog('mrtc OnStartRemoteRecordSucc')
|
|
3525
|
+
this.saveVideoPoint('recordingStatus', '开始录制成功_全局')
|
|
3481
3526
|
} else if (String(record_third_id).includes('_ipad')){
|
|
3482
3527
|
this.state.ipadRecordId = record_id
|
|
3483
3528
|
const busId = Number(record_third_id.split('_')[0])
|
|
3484
3529
|
this.ipadRecordCallback('1', true, busId)
|
|
3485
3530
|
this.saveLog('mrtc OnStartIpadRecordSucc')
|
|
3531
|
+
this.saveVideoPoint('recordingStatus', '开始录制成功_ipad')
|
|
3486
3532
|
} else if (String(record_third_id).includes('_presale')){
|
|
3487
3533
|
// full录制的音频
|
|
3488
3534
|
this.state.presaleRecordId = record_id
|
|
3489
3535
|
this.audioPresaleRecordCallback('1', true)
|
|
3490
3536
|
this.saveLog('mrtc OnStartPresaleRecordSucc')
|
|
3537
|
+
this.saveVideoPoint('recordingStatus', '开始录制成功_presale')
|
|
3491
3538
|
} else if (String(record_third_id).includes('_sale')){
|
|
3492
3539
|
// 业务录制的音频
|
|
3493
3540
|
this.state.salePresaleRecordId = record_id
|
|
3494
3541
|
this.audioSalePresaleRecordCallback('1', true)
|
|
3495
3542
|
this.saveLog('mrtc OnStartSalePresaleRecordSucc')
|
|
3543
|
+
this.saveVideoPoint('recordingStatus', '开始录制成功_sale')
|
|
3496
3544
|
} else if (String(record_third_id).includes('_supplesale')){
|
|
3497
3545
|
// 补录业务录制的音频
|
|
3498
3546
|
this.state.supplesalePresaleRecordId = record_id
|
|
3499
3547
|
this.audiosuppleSalePresaleRecordCallback('1', true)
|
|
3500
3548
|
this.saveLog('mrtc OnStartSuppleSalePresaleRecordSucc')
|
|
3549
|
+
this.saveVideoPoint('recordingStatus', '开始录制成功_supplesale')
|
|
3501
3550
|
} else {
|
|
3502
3551
|
// 业务录制
|
|
3503
3552
|
this.state.businessRecordId = record_id
|
|
3504
3553
|
this.businessRecordCallback('1', true, record_third_id)
|
|
3505
3554
|
this.saveLog('mrtc OnStartRemoteBusinessRecordSucc, businessId=' + record_third_id)
|
|
3555
|
+
this.saveVideoPoint('recordingStatus', '开始录制成功_业务')
|
|
3506
3556
|
}
|
|
3507
3557
|
// 判断是否是开启的音频录制 调用后台接口多isAudio --0否1是
|
|
3508
3558
|
if (this.state.isRecordingeErrorModalVisible) {
|
|
@@ -3522,28 +3572,34 @@ class Video extends Component {
|
|
|
3522
3572
|
if (!record_third_id) {
|
|
3523
3573
|
this.videoRecordCallback('1', false)
|
|
3524
3574
|
this.saveLog('mrtc OnStartRemoteRecordFailed, code='+err_code)
|
|
3575
|
+
this.saveVideoPoint('recordingStatus', '开始录制失败_全局')
|
|
3525
3576
|
} else if (String(record_third_id).includes('_ipad')){
|
|
3526
3577
|
const busId = Number(record_third_id.split('_')[0])
|
|
3527
3578
|
this.ipadRecordCallback('1', false, busId)
|
|
3528
3579
|
this.saveLog('mrtc OnStartIpadRecordFailed, code='+err_code)
|
|
3580
|
+
this.saveVideoPoint('recordingStatus', '开始录制失败_ipad')
|
|
3529
3581
|
} else if (String(record_third_id).includes('_presale')){
|
|
3530
3582
|
// full录制的音频
|
|
3531
3583
|
this.state.presaleRecordId = ''
|
|
3532
3584
|
this.audioPresaleRecordCallback('1', false)
|
|
3533
3585
|
this.saveLog('mrtc OnStartPresaleRecordFailed, code=' + err_code)
|
|
3586
|
+
this.saveVideoPoint('recordingStatus', '开始录制失败_presale')
|
|
3534
3587
|
} else if (String(record_third_id).includes('_sale')){
|
|
3535
3588
|
// 业务录制的音频
|
|
3536
3589
|
this.state.salePresaleRecordId = ''
|
|
3537
3590
|
this.audioSalePresaleRecordCallback('1', false)
|
|
3538
3591
|
this.saveLog('mrtc OnStartSalePresaleRecordFailed, code=' + err_code)
|
|
3592
|
+
this.saveVideoPoint('recordingStatus', '开始录制失败_sale')
|
|
3539
3593
|
} else if (String(record_third_id).includes('_supplesale')){
|
|
3540
3594
|
// 补录业务录制的音频
|
|
3541
3595
|
this.state.supplesalePresaleRecordId = ''
|
|
3542
3596
|
this.audiosuppleSalePresaleRecordCallback('1', false)
|
|
3543
3597
|
this.saveLog('mrtc OnStartSuppleSalePresaleRecordFailed, code=' + err_code)
|
|
3598
|
+
this.saveVideoPoint('recordingStatus', '开始录制失败_supplesale')
|
|
3544
3599
|
} else {
|
|
3545
3600
|
this.businessRecordCallback('1', false, record_third_id)
|
|
3546
3601
|
this.saveLog('mrtc OnStartRemoteBusinessRecordFailed, code='+err_code + ',businessId=' + record_third_id)
|
|
3602
|
+
this.saveVideoPoint('recordingStatus', '开始录制失败_业务录制')
|
|
3547
3603
|
}
|
|
3548
3604
|
this.roomCallBack(2, '开始服务端录制失败', 'record-' + err_code)
|
|
3549
3605
|
};
|
|
@@ -3558,30 +3614,36 @@ class Video extends Component {
|
|
|
3558
3614
|
if (!record_third_id) {
|
|
3559
3615
|
this.videoRecordCallback('2', true)
|
|
3560
3616
|
this.saveLog('mrtc OnStopRemoteRecordSucc, recordId='+recordId)
|
|
3617
|
+
this.saveVideoPoint('recordingStatus', '结束录制成功_业务')
|
|
3561
3618
|
this.state.recordId = '';
|
|
3562
3619
|
} else if (String(record_third_id).includes('_ipad')){
|
|
3563
3620
|
const busId = Number(record_third_id.split('_')[0])
|
|
3564
3621
|
this.ipadRecordCallback('2', true, busId)
|
|
3565
3622
|
this.saveLog('mrtc OnStopIpadRecordSucc, recordId='+recordId)
|
|
3623
|
+
this.saveVideoPoint('recordingStatus', '结束录制成功_ipad')
|
|
3566
3624
|
this.state.ipadRecordId = '';
|
|
3567
3625
|
} else if (String(record_third_id).includes('_presale')){
|
|
3568
3626
|
// full录制的音频
|
|
3569
3627
|
this.state.presaleRecordId = ''
|
|
3570
3628
|
this.audioPresaleRecordCallback('2', true)
|
|
3571
3629
|
this.saveLog('mrtc OnStopPresaleRecordSucc, recordId='+recordId)
|
|
3630
|
+
this.saveVideoPoint('recordingStatus', '结束录制成功_presale')
|
|
3572
3631
|
} else if (String(record_third_id).includes('_sale')){
|
|
3573
3632
|
// 业务录制的音频
|
|
3574
3633
|
this.state.salePresaleRecordId = ''
|
|
3575
3634
|
this.audioSalePresaleRecordCallback('2', true)
|
|
3576
3635
|
this.saveLog('mrtc OnStopSalePresaleSucc, recordId='+recordId)
|
|
3636
|
+
this.saveVideoPoint('recordingStatus', '结束录制成功_sale')
|
|
3577
3637
|
} else if (String(record_third_id).includes('_supplesale')){
|
|
3578
3638
|
// 补录业务录制的音频
|
|
3579
3639
|
this.state.supplesalePresaleRecordId = ''
|
|
3580
3640
|
this.audiosuppleSalePresaleRecordCallback('2', true)
|
|
3581
3641
|
this.saveLog('mrtc OnStopSuppleSalePresaleRecordSucc, recordId='+recordId)
|
|
3642
|
+
this.saveVideoPoint('recordingStatus', '结束录制成功_supplesale')
|
|
3582
3643
|
} else {
|
|
3583
3644
|
this.businessRecordCallback('2', true, record_third_id)
|
|
3584
3645
|
this.saveLog('mrtc OnStopRemoteBusinessRecordSucc, recordId='+recordId + ',businessId=' + record_third_id)
|
|
3646
|
+
this.saveVideoPoint('recordingStatus', '结束录制成功_业务')
|
|
3585
3647
|
this.state.businessRecordId = '';
|
|
3586
3648
|
}
|
|
3587
3649
|
// 获取服务端录制结果
|
|
@@ -3601,27 +3663,33 @@ class Video extends Component {
|
|
|
3601
3663
|
if (!record_third_id) {
|
|
3602
3664
|
this.videoRecordCallback('2', false)
|
|
3603
3665
|
this.saveLog('mrtc OnStopRemoteRecordFailed, err_code='+err_code)
|
|
3666
|
+
this.saveVideoPoint('recordingStatus', '结束录制失败_全局')
|
|
3604
3667
|
} else if (String(record_third_id).includes('_ipad')){
|
|
3605
3668
|
const busId = Number(record_third_id.split('_')[0])
|
|
3606
3669
|
this.ipadRecordCallback('2', false, busId)
|
|
3607
3670
|
this.saveLog('mrtc OnStopIpadRecordFailed, err_code='+err_code)
|
|
3671
|
+
this.saveVideoPoint('recordingStatus', '结束录制失败_ipad')
|
|
3608
3672
|
} else if (String(record_third_id).includes('_presale')){
|
|
3609
3673
|
// full录制的音频
|
|
3610
3674
|
this.state.presaleRecordId = ''
|
|
3611
3675
|
this.audioPresaleRecordCallback('2', false)
|
|
3612
3676
|
this.saveLog('mrtc OnStopPresaleRecordFailed, err_code='+err_code)
|
|
3677
|
+
this.saveVideoPoint('recordingStatus', '结束录制失败_presale')
|
|
3613
3678
|
} else if (String(record_third_id).includes('_sale')){
|
|
3614
3679
|
// 业务录制的音频
|
|
3615
3680
|
this.state.salePresaleRecordId = ''
|
|
3616
3681
|
this.audioSalePresaleRecordCallback('2', false)
|
|
3617
3682
|
this.saveLog('mrtc OnStopSalePresaleFailed, err_code='+err_code)
|
|
3683
|
+
this.saveVideoPoint('recordingStatus', '结束录制失败_sale')
|
|
3618
3684
|
} else if (String(record_third_id).includes('_supplesale')){
|
|
3619
3685
|
// 补录业务录制的音频
|
|
3620
3686
|
this.state.supplesalePresaleRecordId = ''
|
|
3621
3687
|
this.audiosuppleSalePresaleRecordCallback('2', false)
|
|
3622
3688
|
this.saveLog('mrtc OnStopSuppleSalePresaleRecordFailed, err_code='+err_code)
|
|
3689
|
+
this.saveVideoPoint('recordingStatus', '结束录制失败_supplesale')
|
|
3623
3690
|
} else {
|
|
3624
3691
|
this.businessRecordCallback('2', false, record_third_id)
|
|
3692
|
+
this.saveVideoPoint('recordingStatus', '结束录制失败_业务录制')
|
|
3625
3693
|
this.saveLog('mrtc OnStopRemoteBusinessRecordFailed, err_code='+err_code+',businessId=' + record_third_id)
|
|
3626
3694
|
}
|
|
3627
3695
|
|
|
@@ -4052,6 +4120,7 @@ class Video extends Component {
|
|
|
4052
4120
|
roomId: this.state.channelId + '',
|
|
4053
4121
|
appId: this.state.appId,
|
|
4054
4122
|
recordId: this.state.presaleRecordId,
|
|
4123
|
+
preAudioRecordId: this.state.presaleRecordId,
|
|
4055
4124
|
customerId: this.props.customerId,
|
|
4056
4125
|
type: type,
|
|
4057
4126
|
status: status,
|
|
@@ -5190,6 +5259,7 @@ class Video extends Component {
|
|
|
5190
5259
|
})
|
|
5191
5260
|
};
|
|
5192
5261
|
handleOkEnd = () => {
|
|
5262
|
+
this.saveVideoPoint('leaveTheRoom', 'RM退出-结束按钮')
|
|
5193
5263
|
this.endSessionValue();
|
|
5194
5264
|
this.setState({
|
|
5195
5265
|
isModalVisibleEnd: false
|