Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sfu
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
Alain Takoudjou
sfu
Commits
6f5ae12f
Commit
6f5ae12f
authored
Sep 18, 2020
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move RTP-specific code into its own package.
parent
98245cbd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
16 deletions
+7
-16
rtpconn/rtpconn.go
rtpconn/rtpconn.go
+1
-6
rtpconn/rtpstats.go
rtpconn/rtpstats.go
+1
-1
rtpconn/rtpwriter.go
rtpconn/rtpwriter.go
+1
-1
rtpconn/webclient.go
rtpconn/webclient.go
+2
-7
webserver.go
webserver.go
+2
-1
No files found.
rtpconn.go
→
rtpconn
/rtpconn
.go
View file @
6f5ae12f
// Copyright (c) 2020 by Juliusz Chroboczek.
package
rtpconn
// This is not open source software. Copy it, and I'll break into your
// house and tell your three year-old that Santa doesn't exist.
package
main
import
(
import
(
"errors"
"errors"
...
...
rtpstats.go
→
rtp
conn/rtp
stats.go
View file @
6f5ae12f
package
mai
n
package
rtpcon
n
import
(
import
(
"sort"
"sort"
...
...
rtpwriter.go
→
rtp
conn/rtp
writer.go
View file @
6f5ae12f
package
mai
n
package
rtpcon
n
import
(
import
(
"errors"
"errors"
...
...
webclient.go
→
rtpconn/
webclient.go
View file @
6f5ae12f
// Copyright (c) 2020 by Juliusz Chroboczek.
package
rtpconn
// This is not open source software. Copy it, and I'll break into your
// house and tell your three year-old that Santa doesn't exist.
package
main
import
(
import
(
"encoding/json"
"encoding/json"
...
@@ -580,7 +575,7 @@ func (c *webClient) PushConn(id string, up conn.Up, tracks []conn.UpTrack, label
...
@@ -580,7 +575,7 @@ func (c *webClient) PushConn(id string, up conn.Up, tracks []conn.UpTrack, label
return
nil
return
nil
}
}
func
s
tartClient
(
conn
*
websocket
.
Conn
)
(
err
error
)
{
func
S
tartClient
(
conn
*
websocket
.
Conn
)
(
err
error
)
{
var
m
clientMessage
var
m
clientMessage
err
=
conn
.
SetReadDeadline
(
time
.
Now
()
.
Add
(
15
*
time
.
Second
))
err
=
conn
.
SetReadDeadline
(
time
.
Now
()
.
Add
(
15
*
time
.
Second
))
...
...
webserver.go
View file @
6f5ae12f
...
@@ -21,6 +21,7 @@ import (
...
@@ -21,6 +21,7 @@ import (
"sfu/disk"
"sfu/disk"
"sfu/group"
"sfu/group"
"sfu/rtpconn"
"sfu/stats"
"sfu/stats"
)
)
...
@@ -306,7 +307,7 @@ func wsHandler(w http.ResponseWriter, r *http.Request) {
...
@@ -306,7 +307,7 @@ func wsHandler(w http.ResponseWriter, r *http.Request) {
return
return
}
}
go
func
()
{
go
func
()
{
err
:=
s
tartClient
(
conn
)
err
:=
rtpconn
.
S
tartClient
(
conn
)
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Printf
(
"client: %v"
,
err
)
log
.
Printf
(
"client: %v"
,
err
)
}
}
...
...
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