Need help with gortmp?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

zhangpeihao
463 Stars 151 Forks MIT License 49 Commits 19 Opened issues

Description

Implement RTMP protocol by golang

Services available

!
?

Need anything else?

Contributors list

# 98,747
Go
rtmp-se...
rtmp
Lua
39 commits
# 314,173
Go
rtmp-se...
rtmp
Lua
2 commits
# 250,158
Go
rtmp-se...
rtmp
JavaScr...
1 commit

GoRTMP Build Status

======

RTMP protocol implementation.

Spec:

  • RTMP - http://www.adobe.com/devnet/rtmp.html
  • AMF0 - http://download.macromedia.com/pub/labs/amf/amf0spec121207.pdf
  • AMF3 - http://download.macromedia.com/pub/labs/amf/amf3spec121207.pdf

Todo:

  • Inbound side

Examples:

// To connect FMS server
obConn, err := rtmp.Dial(url, handler, 100)

// To connect err = obConn.Connect()

// When new stream created, handler event OnStreamCreated() would been called func (handler *TestOutboundConnHandler) OnStreamCreated(stream rtmp.OutboundStream) { // To play err = stream.Play(*streamName, nil, nil, nil) // Or publish err = stream.Publish(*streamName, "live") }

// To publish data stream.PublishAudioData(data, deltaTimestamp) // or stream.PublishVideoData(data, deltaTimestamp) // or stream.PublishData(tagHeader.TagType, data, deltaTimestamp)

// You can close stream by stream.Close()

// You can close connection by obConn.Close()

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.