react_hsbc_teller 2.0.3 → 2.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/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +6 -21
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=2.0.
|
|
299
|
+
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=2.0.4&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
|
|
|
@@ -1843,23 +1843,7 @@ class Video extends Component {
|
|
|
1843
1843
|
if (publish_tag == 'tag1') {
|
|
1844
1844
|
console.log('tag1', stream)
|
|
1845
1845
|
let newStream = stream;
|
|
1846
|
-
|
|
1847
|
-
// await startBeauty(newStream);
|
|
1848
|
-
// newStream = beautyCaptureStream();
|
|
1849
|
-
// // 清理原始流
|
|
1850
|
-
// newStream.oninactive = function () {
|
|
1851
|
-
// clearOriginStream(stream);
|
|
1852
|
-
// };
|
|
1853
|
-
// newStream.getVideoTracks()[0].onended = function () {
|
|
1854
|
-
// clearOriginStream(stream);
|
|
1855
|
-
// };
|
|
1856
|
-
// function clearOriginStream(stream) {
|
|
1857
|
-
// stream.getTracks().forEach((track) => {
|
|
1858
|
-
// track.stop();
|
|
1859
|
-
// });
|
|
1860
|
-
// stream = null;
|
|
1861
|
-
// }
|
|
1862
|
-
// };
|
|
1846
|
+
|
|
1863
1847
|
if (stream.getVideoTracks()[0]) {
|
|
1864
1848
|
await startBeauty(newStream);
|
|
1865
1849
|
newStream = beautyCaptureStream();
|
|
@@ -1886,8 +1870,7 @@ class Video extends Component {
|
|
|
1886
1870
|
}
|
|
1887
1871
|
|
|
1888
1872
|
if (publish_tag == 'projectionWhiteboard' && publish_device == 2) {
|
|
1889
|
-
|
|
1890
|
-
console.log('projectionWhiteboard', stream)
|
|
1873
|
+
|
|
1891
1874
|
let newStream1 = stream;
|
|
1892
1875
|
if (stream.getVideoTracks()[0]) {
|
|
1893
1876
|
if (this.state.operateShow) {
|
|
@@ -1904,6 +1887,8 @@ class Video extends Component {
|
|
|
1904
1887
|
}
|
|
1905
1888
|
|
|
1906
1889
|
newStream1 = mixCaptureStream();
|
|
1890
|
+
newStream1.getVideoTracks()[0].contentHint = "text"; // 解决清晰度问题
|
|
1891
|
+
|
|
1907
1892
|
console.log('projectionWhiteboard1', newStream1)
|
|
1908
1893
|
// 清理原始流
|
|
1909
1894
|
newStream1.oninactive = function () {
|
|
@@ -3010,7 +2995,7 @@ class Video extends Component {
|
|
|
3010
2995
|
}
|
|
3011
2996
|
}
|
|
3012
2997
|
componentWillMount() {
|
|
3013
|
-
console.log('hsbc_teller_sdk', '2.0.
|
|
2998
|
+
console.log('hsbc_teller_sdk', '2.0.4')
|
|
3014
2999
|
let arr = []
|
|
3015
3000
|
for(let i=1;i<=12;i++){
|
|
3016
3001
|
arr.push({
|