stream fix

main
jerl 2024-05-30 00:01:17 -07:00
parent 84563d1829
commit d687ea7a20
1 changed files with 6 additions and 2 deletions

View File

@ -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
});