implement server TLS support (RTSPS)

This commit is contained in:
aler9
2020-12-13 19:18:15 +01:00
parent c11f056530
commit aaae3b45a7
7 changed files with 334 additions and 35 deletions

View File

@@ -349,12 +349,11 @@ func (sc *ServerConn) WriteFrame(trackID int, streamType StreamType, content []b
sc.mutex.Lock()
defer sc.mutex.Unlock()
sc.nconn.SetWriteDeadline(time.Now().Add(sc.s.conf.WriteTimeout))
frame := base.InterleavedFrame{
TrackID: trackID,
StreamType: streamType,
Content: content,
}
sc.nconn.SetWriteDeadline(time.Now().Add(sc.s.conf.WriteTimeout))
return frame.Write(sc.bw)
}