-
-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simulcast: Allow layer selection for publisher #477
Simulcast: Allow layer selection for publisher #477
Conversation
Codecov Report
@@ Coverage Diff @@
## master #477 +/- ##
==========================================
- Coverage 40.72% 40.20% -0.53%
==========================================
Files 23 23
Lines 2345 2378 +33
==========================================
+ Hits 955 956 +1
- Misses 1263 1295 +32
Partials 127 127
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome work
pkg/sfu/session.go
Outdated
@@ -204,6 +204,15 @@ func (s *Session) OnClose(f func()) { | |||
s.onCloseHandler = f | |||
} | |||
|
|||
func (s *Session) SendMessage(method, params, origin string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be better named BroadcastAPIChannelMessage for the whole Session
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree. I wasn't too happy with my naming :-)
pkg/sfu/peer.go
Outdated
@@ -215,6 +226,25 @@ func (p *Peer) Trickle(candidate webrtc.ICECandidateInit, target int) error { | |||
return nil | |||
} | |||
|
|||
func (p *Peer) SendMessage(method, params string) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe name SendAPIChannelMessage?
pkg/sfu/peer.go
Outdated
@@ -30,6 +31,16 @@ type SessionProvider interface { | |||
GetSession(sid string) (*Session, WebRTCTransportConfig) | |||
} | |||
|
|||
const ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These might be better defined in the subscriberapi.go, not a strong opinion on this though just something to think about
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been debating the same. Since the method name can be anything, we could put constants in the appropriate location (session and subscribeapi.go), that way middleware would be on one place, but on the other hand this way all available methods are in one place. Not a strong opinion either.
This is useful. |
4915ed0
to
5b20944
Compare
5b20944
to
8de0e7b
Compare
8de0e7b
to
ddec8b0
Compare
d8b3da2
to
2ebbebf
Compare
Changed ion-sfu channel messaging to be peer based and added aditional types Addressing PR comments Rename IonSfuMessage to ChannelAPIMessage. Use interface{} instead of string, fixes double marshalling issue
2ebbebf
to
91a809b
Compare
Description
Reference issue
Fixes #...