mirror of https://bitbucket.org/ausocean/av.git
av/rtmp/rtmp_test.go: using local rtmpSender io.writer implemntation to handle errors from rtmp
This commit is contained in:
parent
2697dcf515
commit
2da8d2af85
|
@ -243,8 +243,9 @@ func TestFromFile(t *testing.T) {
|
|||
}
|
||||
defer f.Close()
|
||||
|
||||
rs := &rtmpSender{conn: c}
|
||||
// Pass RTMP session, true for audio, true for video, and 25 FPS
|
||||
flvEncoder, err := flv.NewEncoder(c, true, true, 25)
|
||||
flvEncoder, err := flv.NewEncoder(rs, true, true, 25)
|
||||
if err != nil {
|
||||
t.Fatalf("failed to create encoder: %v", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue