mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
playoutDelayHint = 0
This commit is contained in:
parent
9f289914e9
commit
1ca3045780
@ -218,6 +218,13 @@ function _JanusStreamer(__setActive, __setInactive, __setInfo) {
|
|||||||
__setAudioEnabled(!!stream.getAudioTracks().length);
|
__setAudioEnabled(!!stream.getAudioTracks().length);
|
||||||
_Janus.attachMediaStream($("stream-video"), stream);
|
_Janus.attachMediaStream($("stream-video"), stream);
|
||||||
__startInfoInterval();
|
__startInfoInterval();
|
||||||
|
if (__handle && __handle.webrtcStuff && __handle.webrtcStuff.pc) {
|
||||||
|
for (let receiver of __handle.webrtcStuff.pc.getReceivers()) {
|
||||||
|
if (receiver.track && receiver.track.kind == "video" && receiver.playoutDelayHint !== undefined) {
|
||||||
|
receiver.playoutDelayHint = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
oncleanup: function() {
|
oncleanup: function() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user