mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
fill with video, audio, clients
This commit is contained in:
parent
a99592bad8
commit
ed7466899a
@ -48,6 +48,8 @@ export default class StreamingController extends Controller {
|
|||||||
streamings = data.streams
|
streamings = data.streams
|
||||||
|
|
||||||
streamings = streamings.map(async (stream) => {
|
streamings = streamings.map(async (stream) => {
|
||||||
|
const { video, audio, clients } = stream
|
||||||
|
|
||||||
stream = await this.methods.generateStreamFromStreamkey(stream.name)
|
stream = await this.methods.generateStreamFromStreamkey(stream.name)
|
||||||
|
|
||||||
let info = await StreamingInfo.findOne({
|
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
|
return stream
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user