Added ToDo.

This commit is contained in:
scruzin 2019-01-11 11:17:14 +10:30
parent 22b76b5bda
commit 2f3c2cc0e2
1 changed files with 4 additions and 1 deletions

View File

@ -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()