nareix / joy4

Golang audio/video library and streaming server
MIT License
2.66k stars 501 forks source link

Does not work stream to facebook live #110

Open Shpionus opened 4 years ago

Shpionus commented 4 years ago

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
derit26 commented 3 years ago

same issue