mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-03 19:32:42 +02:00
Stream bucket manager (#12)
* refactor webrtc. * bind track with a single connection. * audio+video codec. * move stream selection to bucket manager. * audio w/o bucket manager. * revert peer changes. * return video IDs. * destroy & recreate all. * add video ID change. * Track -> Recevier.
This commit is contained in:
parent
095f9fe8ee
commit
5ad5daa6bb
11 changed files with 438 additions and 356 deletions
|
@ -15,7 +15,7 @@ func (h *MessageHandlerCtx) signalRequest(session types.Session, payload *messag
|
|||
|
||||
// use default first video, if not provided
|
||||
if payload.Video == "" {
|
||||
videos := h.capture.VideoIDs()
|
||||
videos := h.capture.Video().IDs()
|
||||
payload.Video = videos[0]
|
||||
}
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ func (h *MessageHandlerCtx) systemInit(session types.Session) error {
|
|||
Settings: h.sessions.Settings(),
|
||||
ScreencastEnabled: h.capture.Screencast().Enabled(),
|
||||
WebRTC: message.SystemWebRTC{
|
||||
Videos: h.capture.VideoIDs(),
|
||||
Videos: h.capture.Video().IDs(),
|
||||
},
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue