mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-03 08:50:13 +02:00
add legacy simulcast stream that shows pointer.
This commit is contained in:
parent
b3b31fba1f
commit
373e9970f9
5 changed files with 48 additions and 2 deletions
|
@ -60,6 +60,18 @@ func (s *session) wsToBackend(msg []byte) error {
|
|||
s.name = request.DisplayName
|
||||
}
|
||||
|
||||
// try to set legacy video stream, if it fails, it will be ignored
|
||||
if err := s.toBackend(event.SIGNAL_VIDEO, &message.SignalVideo{
|
||||
PeerVideoRequest: types.PeerVideoRequest{
|
||||
Selector: &types.StreamSelector{
|
||||
Type: types.StreamSelectorTypeExact,
|
||||
ID: "legacy",
|
||||
},
|
||||
},
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return s.toBackend(event.SIGNAL_ANSWER, &message.SignalDescription{
|
||||
SDP: request.SDP,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue