golanggohlsrtmpwebrtcmedia-serverobs-studiortcprtmp-proxyrtmp-serverrtprtsprtsp-proxyrtsp-relayrtsp-serversrtstreamingwebrtc-proxy
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.
18 lines
324 B
18 lines
324 B
package rtmp |
|
|
|
import ( |
|
"github.com/notedit/rtmp/format/rtmp" |
|
) |
|
|
|
// Dial connects to a server in reading mode. |
|
func Dial(address string) (*Conn, error) { |
|
rconn, nconn, err := rtmp.NewClient().Dial(address, rtmp.PrepareReading) |
|
if err != nil { |
|
return nil, err |
|
} |
|
|
|
return &Conn{ |
|
rconn: rconn, |
|
nconn: nconn, |
|
}, nil |
|
}
|
|
|