VideoContext
VideoContext copied to clipboard
Made createImageBitmap usage Firefox compliant
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