mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-11 16:17:31 +02:00
replace video track on demand.
This commit is contained in:
parent
c81bca9b2f
commit
6756114e30
6 changed files with 42 additions and 23 deletions
|
@ -59,6 +59,11 @@ func (h *MessageHandlerCtx) Message(session types.Session, raw []byte) bool {
|
|||
err = utils.Unmarshal(payload, raw, func() error {
|
||||
return h.signalCandidate(session, payload)
|
||||
})
|
||||
case event.SIGNAL_VIDEO:
|
||||
payload := &message.SignalVideo{}
|
||||
err = utils.Unmarshal(payload, raw, func() error {
|
||||
return h.signalVideo(session, payload)
|
||||
})
|
||||
|
||||
// Control Events
|
||||
case event.CONTROL_RELEASE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue