How do you suggest to change src to another gif? The new gif may have a different number of frames.
I've tried entity.setAttribute('src', 'url(newimg.gif') which works to swap gifs, but then page hangs after a few loops. I'm assuming frame idx is causing issue.
How do I swap src and update frame count or force reload of shader?
How do you suggest to change src to another gif? The new gif may have a different number of frames. I've tried
entity.setAttribute('src', 'url(newimg.gif')
which works to swap gifs, but then page hangs after a few loops. I'm assuming frame idx is causing issue.How do I swap src and update frame count or force reload of shader?
Thanks.