2018-02-15 10:02:04 +03:00
|
|
|
|
2018-02-15 11:13:45 +03:00
|
|
|
package rtmp
|
2018-02-15 10:02:04 +03:00
|
|
|
|
2018-02-15 11:13:45 +03:00
|
|
|
/*
|
2018-02-15 10:02:04 +03:00
|
|
|
// #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 (
|
2018-02-16 08:46:24 +03:00
|
|
|
inputFile = "saxonOut.flv"
|
2018-02-15 10:02:04 +03:00
|
|
|
outputUrl = "rtmp://a.rtmp.youtube.com/live2/w44c-mkuu-aezg-ceb1"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main(){
|
|
|
|
C.publish_using_write(C.CString(inputFile), C.CString(outputUrl))
|
|
|
|
}
|
2018-02-15 11:13:45 +03:00
|
|
|
*/
|