From 2f3c2cc0e2d1c0859ed81031983508c159b9a77f Mon Sep 17 00:00:00 2001 From: scruzin Date: Fri, 11 Jan 2019 11:17:14 +1030 Subject: [PATCH] Added ToDo. --- rtmp/rtmp_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rtmp/rtmp_test.go b/rtmp/rtmp_test.go index be4cf276..01dad10f 100644 --- a/rtmp/rtmp_test.go +++ b/rtmp/rtmp_test.go @@ -177,13 +177,16 @@ func TestFromFrame(t *testing.T) { } // Pass RTMP session, true for audio, true for video, and 25 FPS + // ToDo: fix this. Although we can encode the file and YouTube + // doesn't complain, YouTube doesn't play it (even when we + // send 1 minute's worth). flvEncoder := flv.NewEncoder(s, true, true, 25) for i := 0; i < 25; i++ { err := flvEncoder.Encode(b) if err != nil { t.Errorf("Encoding failed with error: %v", err) } - time.Sleep(40 * time.Millisecond) // rate limit to 1/25s + time.Sleep(time.Millisecond / 25) // rate limit to 1/25s } err = s.Close()