mirror of https://bitbucket.org/ausocean/av.git
Added ToDo.
This commit is contained in:
parent
22b76b5bda
commit
2f3c2cc0e2
|
@ -177,13 +177,16 @@ func TestFromFrame(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pass RTMP session, true for audio, true for video, and 25 FPS
|
// 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)
|
flvEncoder := flv.NewEncoder(s, true, true, 25)
|
||||||
for i := 0; i < 25; i++ {
|
for i := 0; i < 25; i++ {
|
||||||
err := flvEncoder.Encode(b)
|
err := flvEncoder.Encode(b)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("Encoding failed with error: %v", err)
|
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()
|
err = s.Close()
|
||||||
|
|
Loading…
Reference in New Issue