Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
235 B

package base
import (
"io"
)
// HandshakeC0 is the C0 part of an handshake.
type HandshakeC0 struct{}
// Read reads a HandshakeC0.
func (HandshakeC0) Write(w io.Writer) error {
_, err := w.Write([]byte{rtmpVersion})
return err
}