Question
I want to write efficient code for playing / managing images in a web browser using JavaScript. I think using a video file can reduce HTTP requests. How can I access the version of png / jpg / bytecode of one frame from a video?
Background
Currently, I have a sequence of 1000 images that change anyway, which should be quickly available on my page. images are downloaded by HTTP requests forever (obviously), and as my application grows, it is likely that this number will increase from 1000 to 5000 to 10000 ...
Ajax requests for individual images will not work, b / c I need the image to load immediately (and you donβt have time to wait for a new HTTP request).
My idea was to pre-process the video file on the server, which shows the progression of the image - one image per frame - to speed up loading and browser performance. I feel that this video can be quickly downloaded to the client depending on the speed of watching the video on the Internet. I went in cycles on how to receive the image for a frame from video.
HTML5?
Notice, I haven't looked at HTML5 yet, but would be willing to consider if this might help.
source share