Commit af462329 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Set time offsets and cname as soon as possible.

parent e673cf12
...@@ -449,6 +449,13 @@ func (up *rtpUpTrack) AddLocal(local conn.DownTrack) error { ...@@ -449,6 +449,13 @@ func (up *rtpUpTrack) AddLocal(local conn.DownTrack) error {
return nil return nil
} }
} }
if up.srNTPTime != 0 {
local.SetTimeOffset(up.srNTPTime, up.srRTPTime)
}
cname, ok := up.cname.Load().(string)
if ok && cname != "" {
local.SetCname(cname)
}
up.local = append(up.local, local) up.local = append(up.local, local)
up.mu.Unlock() up.mu.Unlock()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment