A video with a static image doesn't have to be drawn every video frame since nothing changes. For example music videos with a static image. This saves GPU and CPU usage.
Todo
Figure out the grid size
Get the first, middle and last storyboard
getImageData from storyboard images
Cut out the images
Compare images
Get timestamps from/till when the image is static
Suspend drawing when the currenttime is in range
Notes
Code that retrieves the storyboard image url data:
The 2nd array data gets transformed into an url that contains all storyboard images in a low resolution:
https://i.ytimg.com/sb/iWjjQoMesDo/storyboard3_L1/M0.jpg?sqp=-oaymwENSDfyq4qpAwVwAcABBqLzl_8DBgjOop2gBg==&sigh=rs%24AOn4CLAUreoqw93luY8kueYe7QvnT49P2Q
The 3th array data gets transformed into urls that contain 25 images at a time. (Can we derive this from the ,"5", "5", values?)
This video has 4 urls ranging from M0.jpg to M3.jpg:
https://i.ytimg.com/sb/iWjjQoMesDo/storyboard3_L2/M0.jpg?sqp=-oaymwENSDfyq4qpAwVwAcABBqLzl_8DBgjOop2gBg==&sigh=rs%24AOn4CLCECCxIPIb3kS6cAEcd2wbVL2gO2Q
A video with a static image doesn't have to be drawn every video frame since nothing changes. For example music videos with a static image. This saves GPU and CPU usage.
Todo
Notes
Code that retrieves the storyboard image url data:
This returns data can be transformed into storyboard image urls.
Example video: https://www.youtube.com/watch?v=iWjjQoMesDo
The 2nd array data gets transformed into an url that contains all storyboard images in a low resolution:
https://i.ytimg.com/sb/iWjjQoMesDo/storyboard3_L1/M0.jpg?sqp=-oaymwENSDfyq4qpAwVwAcABBqLzl_8DBgjOop2gBg==&sigh=rs%24AOn4CLAUreoqw93luY8kueYe7QvnT49P2Q
The 3th array data gets transformed into urls that contain 25 images at a time. (Can we derive this from the
,"5", "5",
values?) This video has 4 urls ranging fromM0.jpg
toM3.jpg
:https://i.ytimg.com/sb/iWjjQoMesDo/storyboard3_L2/M0.jpg?sqp=-oaymwENSDfyq4qpAwVwAcABBqLzl_8DBgjOop2gBg==&sigh=rs%24AOn4CLCECCxIPIb3kS6cAEcd2wbVL2gO2Q