Commit cb3517b6 authored by 李纪文's avatar 李纪文

fix: 修改视频掉线重连问题

parent 07995e35
...@@ -52,10 +52,12 @@ class App extends React.Component { ...@@ -52,10 +52,12 @@ class App extends React.Component {
loadingTimeout: 10, loadingTimeout: 10,
loadingText: '视频加载中', loadingText: '视频加载中',
loadingTimeoutReplay: true, loadingTimeoutReplay: true,
loadingTimeoutReplayTimes: -1,
timeout: 10, timeout: 10,
controlAutoHide: true, controlAutoHide: true,
heartTimeout: 10, heartTimeout: 10,
heartTimeoutReplay: true, heartTimeoutReplay: true,
heartTimeoutReplayTimes: -1,
showBandwidth: true, // 显示网速 showBandwidth: true, // 显示网速
operateBtns: { operateBtns: {
fullscreen: true, fullscreen: true,
...@@ -73,6 +75,9 @@ class App extends React.Component { ...@@ -73,6 +75,9 @@ class App extends React.Component {
}; };
if (dom) { if (dom) {
this.jessibuca = new window.Jessibuca(jsc); this.jessibuca = new window.Jessibuca(jsc);
this.jessibuca.on("loadingTimeout", function () {
console.log('timeout')
})
} }
} }
......
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