Implementing the decode loop from the WebCodecs Fundamentals guide - rendering video at 30fps using WebCodecs.