Browse Source

none display canvas

m7s
superxxd 2 years ago
parent
commit
98e9d622d3
  1. 2
      test/mqtt.js

2
test/mqtt.js

@ -28,6 +28,7 @@ function OnTrack(pc){
el.height = canvas.height;
el.autoplay = true;
el.id = 'metaRTCVideo';
canvas.style.display="none";
}
el.srcObject = event.streams[0];
el.autoplay = true;
@ -53,6 +54,7 @@ function getStreamWebrtc(player) {
initH265DC(pc,player);
}else{
const { receivervideo } = pc.addTransceiver('video', { direction: 'recvonly' });
receivervideo.playoutDelayHint = 0.0;
OnTrack(pc)
}
}

Loading…
Cancel
Save