fill with video, audio, clients

This commit is contained in:
SrGooglo 2022-12-14 15:32:43 +00:00
parent a99592bad8
commit ed7466899a

View File

@ -48,6 +48,8 @@ export default class StreamingController extends Controller {
streamings = data.streams
streamings = streamings.map(async (stream) => {
const { video, audio, clients } = stream
stream = await this.methods.generateStreamFromStreamkey(stream.name)
let info = await StreamingInfo.findOne({
@ -62,6 +64,10 @@ export default class StreamingController extends Controller {
})
}
stream.video = video
stream.audio = audio
stream.connectedClients = clients ?? 0
return stream
})