nareix / joy4

Golang audio/video library and streaming server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not work stream to facebook live

Shpionus opened this issue · comments

Does this library support rtmps?

func remote_stream() {
	conn, err := rtmp.Dial("rtmps://live-api-s.facebook.com:443/rtmp/<facebook_token>")
	if err != nil {
		log.Println("remote dial")
		panic(err)
	}

	defer conn.Close()
	if err := avutil.CopyFile(conn, que.Latest()); err != nil && err != io.EOF {
		log.Println("Remote copy file")
		panic(err)
	}
}

Result:

2020/05/07 16:27:30 Remote copy file
panic: unexpected EOF

same issue