Commit be2f76f9 authored by 陈龙's avatar 陈龙

feat: 历史曲线去除原始数据下载

parents 1729355b 0b906224
......@@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.1.42](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/videoslidermodal@1.1.41...@wisdom-components/videoslidermodal@1.1.42) (2023-10-26)
**Note:** Version bump only for package @wisdom-components/videoslidermodal
## [1.1.41](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/videoslidermodal@1.1.40...@wisdom-components/videoslidermodal@1.1.41) (2023-10-26)
**Note:** Version bump only for package @wisdom-components/videoslidermodal
......
{
"name": "@wisdom-components/videoslidermodal",
"version": "1.1.41",
"version": "1.1.42",
"description": "> TODO: description",
"author": "Liumh <liumh564@163.com>",
"homepage": "",
......@@ -31,7 +31,7 @@
},
"dependencies": {
"@babel/runtime": "^7.17.9",
"@wisdom-components/VmsVideo": "1.2.35",
"@wisdom-components/VmsVideo": "1.2.36",
"swiper": "^6.8.1"
}
}
......@@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.2.36](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/VmsVideo@1.2.35...@wisdom-components/VmsVideo@1.2.36) (2023-10-26)
### Bug Fixes
- 修改视频掉线重连 ([1cf2140](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/1cf21402d9e2ccda96951166462b2b8d73ff5b3b))
## [1.2.35](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/VmsVideo@1.2.34...@wisdom-components/VmsVideo@1.2.35) (2023-10-26)
### Bug Fixes
......
{
"name": "@wisdom-components/VmsVideo",
"version": "1.2.35",
"version": "1.2.36",
"description": "> TODO: description",
"author": "yutian <249303761@qq.com>",
"homepage": "",
......
......@@ -8,6 +8,7 @@ class App extends React.Component {
constructor(props) {
super(props);
this.jessibuca = null;
this.outTime = null;
this.showOperateBtns = true;
this.$container = null;
this.forceNoOffscreen = false;
......@@ -75,8 +76,17 @@ class App extends React.Component {
};
if (dom) {
this.jessibuca = new window.Jessibuca(jsc);
this.jessibuca.on("loadingTimeout", function () {
console.log('timeout')
this.jessibuca.on("error", (error) => {
if (error === 'fetchError' || error === 'websocketError') {
// 这里统一的做重连
this.outTime = setTimeout(() => {
this.jessibuca.pause().then(()=>{
this.jessibuca.play().then().catch((e)=>{
// console.log(e)
})
})
}, 5000);
}
})
}
}
......@@ -109,6 +119,10 @@ class App extends React.Component {
isPlaying: false,
});
}
if (this.outTime) {
clearTimeout(this.outTime);
this.outTime = null;
}
}
renderCheckedArr() {
let { VideoInfo } = this.props;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment