Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
galene
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
galene
Commits
98034c0f
Commit
98034c0f
authored
Apr 26, 2020
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename streamCount to trackCount.
parent
78d3b7ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
client.go
client.go
+3
-3
group.go
group.go
+1
-1
No files found.
client.go
View file @
98034c0f
...
...
@@ -285,7 +285,7 @@ func addUpConn(c *client, id string) (*upConnection, error) {
remote
:
remote
,
local
:
local
,
})
done
:=
len
(
u
.
pairs
)
>=
u
.
stream
Count
done
:=
len
(
u
.
pairs
)
>=
u
.
track
Count
c
.
group
.
mu
.
Unlock
()
clients
:=
c
.
group
.
getClients
(
c
)
...
...
@@ -610,7 +610,7 @@ func gotOffer(c *client, offer webrtc.SessionDescription, id string) error {
log
.
Printf
(
"Couldn't parse SDP: %v"
,
err
)
n
=
2
}
up
.
stream
Count
=
n
up
.
track
Count
=
n
err
=
up
.
pc
.
SetRemoteDescription
(
offer
)
if
err
!=
nil
{
return
err
...
...
@@ -762,7 +762,7 @@ func clientLoop(c *client, conn *websocket.Conn) error {
for
_
,
u
:=
range
c
.
up
{
var
done
bool
for
i
,
p
:=
range
u
.
pairs
{
done
=
i
>=
u
.
stream
Count
-
1
done
=
i
>=
u
.
track
Count
-
1
a
.
c
.
action
(
addTrackAction
{
u
.
id
,
p
.
local
,
u
,
done
,
...
...
group.go
View file @
98034c0f
...
...
@@ -27,7 +27,7 @@ type upConnection struct {
pc
*
webrtc
.
PeerConnection
maxAudioBitrate
uint32
maxVideoBitrate
uint32
streamCount
int
trackCount
int
pairs
[]
trackPair
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment