go-rtmp icon indicating copy to clipboard operation
go-rtmp copied to clipboard

Golang: RTMP Protocol

Golang: RTMP Protocol

Features

  • [x] AMF0 Encoder/Decoder
  • [ ] AMF3 Encoder/Decoder
  • [ ] FLV Reader/Writer
  • [x] RTMP Client
  • [ ] RTMP Server

Installation

go get github.com/pixelbender/go-rtmp

RTMP Client

package main

import (
    "github.com/pixelbender/go-rtmp/rtmp"
    "fmt"
)

func main() {
    conn, err := rtmp.Dial("rtmp://example.org/app")
    if err != nil {
        fmt.Println(err)
    } else {
        defer conn.Close()
        fmt.Println(conn)
    }
}

Specifications