Suggestion: video.setPosition() performance #541

Closed
dimitre opened this Issue Apr 16, 2011 · 1 comment

Comments

Projects
None yet
2 participants

dimitre commented Apr 16, 2011

Hello I've just noticed that video.setPosition() function is not much usable more than once at a time, probably because it examines the file for getTotalNumFrames every time, which is expensive.
What about some kind of lookup table to store TotalFrames for each video?
Anyway, this is not an important suggestion because it can be done easily with video.setFrame() and video.getTotalNumFrames()

Contributor

kylemcdonald commented Jun 15, 2013

i think the way that video.setPosition() works on different platforms varies a lot, and we should keep experimenting on a per-platform basis rather than trying to solve this in the general case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment