Skip to content

Commit 8c6faa4

Browse files
authored
Expose WithCodecs (#829)
* Expose with codecs * udpdate test
1 parent d2e7028 commit 8c6faa4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ func TestSimulcastCodec(t *testing.T) {
547547
require.Equal(t, c.backupCodec.MimeType, track.Codec().MimeType)
548548
},
549549
},
550-
}, "backup_subscriber", withCodecs([]webrtc.RTPCodecParameters{
550+
}, "backup_subscriber", WithCodecs([]webrtc.RTPCodecParameters{
551551
{
552552
RTPCodecCapability: c.backupCodec,
553553
PayloadType: 96,

room.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func WithExtraAttributes(attrs map[string]string) ConnectOption {
177177
}
178178

179179
// for internal use to test codecs
180-
func withCodecs(codecs []webrtc.RTPCodecParameters) ConnectOption {
180+
func WithCodecs(codecs []webrtc.RTPCodecParameters) ConnectOption {
181181
return func(p *signalling.ConnectParams) {
182182
p.Codecs = codecs
183183
}

0 commit comments

Comments
 (0)