stream fix
parent
84563d1829
commit
d687ea7a20
|
@ -60,7 +60,7 @@ async function stream(msg, respond, socket) {
|
|||
stream = {
|
||||
id: newstreamid++,
|
||||
thread: msg.thread,
|
||||
user: msg.auth_user.name,
|
||||
user: msg.auth_user.displayname,
|
||||
name: msg.name
|
||||
};
|
||||
thread.streams.push(stream);
|
||||
|
@ -98,7 +98,11 @@ async function streamdata(msg, respond) {
|
|||
});
|
||||
}
|
||||
for (let id in stream.listeners)
|
||||
stream.listeners[id].emit('streamdata', msg);
|
||||
stream.listeners[id].emit('streamdata', {
|
||||
id: msg.id,
|
||||
audio: msg.audio,
|
||||
video: msg.video
|
||||
});
|
||||
respond({
|
||||
success: true
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue