hy05190134 3d51f8c278 Update conn.go
add some question point statements and modify
2016-04-18 11:27:26 +08:00
2013-03-14 15:50:13 +08:00
2013-03-14 15:50:13 +08:00
2014-11-17 18:10:51 +08:00
2016-04-18 11:27:26 +08:00
2015-01-22 11:03:18 +08:00
2013-03-14 15:50:13 +08:00
2015-05-05 17:10:16 +08:00
2015-05-04 11:34:52 +08:00
2013-05-13 12:07:39 +08:00

GoRTMP Build Status

======

RTMP protocol implementation.

Spec:

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()
Description
No description provided
Readme MIT 1.2 MiB
Languages
Go 100%