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

Loading…
Cancel
Save