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:
Miroslav Šedivý 2022-10-17 13:39:31 +02:00 committed by GitHub
parent 095f9fe8ee
commit 5ad5daa6bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 438 additions and 356 deletions

View file

@ -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]
}

View file

@ -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(),
},
})