Browse Source

jessibuca.destroy()

release_0.0.2
巴林闲侠 2 years ago
parent
commit
e3a6dc6e85
  1. 10
      code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx

10
code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx

@ -220,6 +220,7 @@ const VideoPlay = ({
const createJessibuca = async () => {
if (videoObj.type != 'yingshi') {
try {
//
// const inviteRes = await IotVideoServerRequest.get(VideoServeApi.invite, {
// id: '36011200002002021114',
// channel: '36011200581314002900'
@ -234,9 +235,12 @@ const VideoPlay = ({
console.log(error.response);
}
if (jessibuca) {
jessibuca.destroy()
}
let $container = document.getElementById(containerId);
const jessibuca = new window.Jessibuca({
const jessibuca_ = new window.Jessibuca({
container: $container,
videoBuffer: 0.2, //
isResize: false,
@ -253,8 +257,8 @@ const VideoPlay = ({
forceNoOffscreen: false,
isNotMute: false,
});
setjessibuca(jessibuca)
play({ jessibuca })
setjessibuca(jessibuca_)
play({ jessibuca: jessibuca_ })
}
}

Loading…
Cancel
Save