← Questions
Video playback loop at 25 frames per second
0
I was asked this
No reports yet. Sign in to say where you were asked it.
You get a VideoPlayer with a Read() that returns the next frame and a call that renders a frame. Write the playback loop: frames must be shown at a steady 25 frames per second even though reading takes a variable amount of time. Use threads safely, for example a reader thread filling a bounded buffer and a renderer drawing on a fixed clock, and handle the end of the video.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding
