mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
+ CanWatch.
This commit is contained in:
parent
d2ffac3d4b
commit
4fe74fd112
@ -7,6 +7,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (h *MessageHandlerCtx) signalRequest(session types.Session) error {
|
func (h *MessageHandlerCtx) signalRequest(session types.Session) error {
|
||||||
|
if !session.CanWatch() {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
sdp, lite, ice, err := h.webrtc.CreatePeer(session)
|
sdp, lite, ice, err := h.webrtc.CreatePeer(session)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user