fix eslint
This commit is contained in:
parent
eab29babea
commit
24c2efeb00
|
@ -303,7 +303,7 @@ function MonitorStream(monitorData) {
|
|||
} // end function MonitorStream
|
||||
|
||||
async function attachVideo(id) {
|
||||
await waitUntil(() => janus.isConnected() )
|
||||
await waitUntil(() => janus.isConnected() );
|
||||
janus.attach({
|
||||
plugin: "janus.plugin.streaming",
|
||||
opaqueId: "streamingtest-"+Janus.randomString(12),
|
||||
|
@ -357,7 +357,7 @@ async function attachVideo(id) {
|
|||
|
||||
const waitUntil = (condition) => {
|
||||
return new Promise((resolve) => {
|
||||
let interval = setInterval(() => {
|
||||
const interval = setInterval(() => {
|
||||
if (!condition()) {
|
||||
return;
|
||||
}
|
||||
|
@ -365,4 +365,4 @@ const waitUntil = (condition) => {
|
|||
resolve();
|
||||
}, 100);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue