bbc / VideoContext

An experimental HTML5 & WebGL video composition and rendering API.
http://bbc.github.io/VideoContext/
Apache License 2.0
1.32k stars 156 forks source link

Made createImageBitmap usage Firefox compliant #204

Closed finallyblueskies closed 1 year ago

finallyblueskies commented 4 years ago

Currently, if you try and render image nodes in Firefox you will get the following error:

TypeError
Window.createImageBitmap: 2 is not a valid argument count for any overload.

This is because Firefox does not support passing options as the second argument in the function, whereas the 6 argument variant works as intended.

Before: https://codesandbox.io/s/videocontext-imagenode-xrrg3?file=/src/index.js After: https://codesandbox.io/s/videocontext-imagenode-pk6sy