mirror of https://bitbucket.org/ausocean/av.git
20 lines
489 B
Go
20 lines
489 B
Go
package rtmp
|
|
|
|
/*
|
|
// #cgo CFLAGS: -I/home/saxon/Desktop/AusOcean/av/rtmp/
|
|
// #cgo CFLAGS: -I/home/saxon/Desktop/AusOcean/av/rtmp/rtmp_c/librtmp
|
|
// #cgo LDFLAGS: /home/saxon/Desktop/AusOcean/av/rtmp/rtmp_c/librtmp/librtmp.a
|
|
// #cgo LDFLAGS: -lssl -lcrypto -lz
|
|
// #include <testRtmp.h>
|
|
import "C"
|
|
|
|
const (
|
|
inputFile = "saxonOut.flv"
|
|
outputUrl = "rtmp://a.rtmp.youtube.com/live2/w44c-mkuu-aezg-ceb1"
|
|
)
|
|
|
|
func main(){
|
|
C.publish_using_write(C.CString(inputFile), C.CString(outputUrl))
|
|
}
|
|
*/
|